From e278a2ac31f3e1450a08d10dffcff24f36629625 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sat, 24 Jul 2010 00:20:18 +0000 Subject: [PATCH] --- .../wicket/behavior/FlushEntityManagerBehavior.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); } } -- 2.31.1