From: Erik Brakkee Date: Sat, 24 Jul 2010 00:20:18 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.7~182 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;ds=inline;h=e278a2ac31f3e1450a08d10dffcff24f36629625;p=utils --- diff --git a/wicket/components/src/main/java/org/wamblee/wicket/behavior/FlushEntityManagerBehavior.java b/wicket/components/src/main/java/org/wamblee/wicket/behavior/FlushEntityManagerBehavior.java index 9ab5dda6..287bb64c 100644 --- a/wicket/components/src/main/java/org/wamblee/wicket/behavior/FlushEntityManagerBehavior.java +++ b/wicket/components/src/main/java/org/wamblee/wicket/behavior/FlushEntityManagerBehavior.java @@ -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); } }