(no commit message)
authorErik Brakkee <erik@brakkee.org>
Sat, 24 Jul 2010 00:20:18 +0000 (00:20 +0000)
committerErik Brakkee <erik@brakkee.org>
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);
         }
     }