From 219f333bf0a4732868fff4ef345ceb0ae320b508 Mon Sep 17 00:00:00 2001 From: erik 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