From d3237c819ec69d3ca0cf4c46d42de9d1d1e19e3f Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 20 Nov 2024 17:24:53 +0100 Subject: [PATCH] cleanup debugging FIXME --- .../hsadminng/hs/migration/CsvDataImport.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/CsvDataImport.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/CsvDataImport.java index 311302c7..bd3b8061 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/CsvDataImport.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/CsvDataImport.java @@ -172,14 +172,15 @@ public class CsvDataImport extends ContextBasedTest { public T persistViaEM(final Integer id, final T entity) { //System.out.println("persisting #" + entity.hashCode() + ": " + entity); em.persist(entity); - // uncomment for debugging purposes FIXME - try { - em.flush(); // makes it slow, but produces better error messages - System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid()); - return entity; - } catch (final Exception exc) { - throw exc; // for breakpoints - } + // uncomment for debugging purposes + // try { + // em.flush(); // makes it slow, but produces better error messages + // System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid()); + // return entity; + // } catch (final Exception exc) { + // throw exc; // for breakpoints + // } + return entity; } @SneakyThrows