(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 24 Jul 2010 00:20:18 +0000 (00:20 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 24 Jul 2010 00:20:18 +0000 (00:20 +0000)
wicket/components/src/main/java/org/wamblee/wicket/behavior/FlushEntityManagerBehavior.java

index 9ab5dda6d5c4cd845cdb5e08c237d0ce4403eb9d..287bb64ca0bc0d114f88c2eb37a1275fb5d90637 100644 (file)
@@ -57,12 +57,11 @@ public class FlushEntityManagerBehavior extends AbstractPageBehavior {
             if (entityManager.isOpen()) {
                 entityManager.flush();
             }
-        } catch (TransactionRequiredException e) { 
-            throw e; 
-        } catch (PersistenceException e) { 
+        } catch (TransactionRequiredException e) {
             throw e;
-        }
-        catch (Exception e) { 
+        } catch (PersistenceException e) {
+            throw e;
+        } catch (Exception e) {
             LOGGER.log(Level.WARNING, "Could not flush entitymanager", e);
         }
     }