cleanup debugging FIXME
This commit is contained in:
parent
e6b1699210
commit
d3237c819e
@ -172,14 +172,15 @@ public class CsvDataImport extends ContextBasedTest {
|
|||||||
public <T extends BaseEntity> T persistViaEM(final Integer id, final T entity) {
|
public <T extends BaseEntity> T persistViaEM(final Integer id, final T entity) {
|
||||||
//System.out.println("persisting #" + entity.hashCode() + ": " + entity);
|
//System.out.println("persisting #" + entity.hashCode() + ": " + entity);
|
||||||
em.persist(entity);
|
em.persist(entity);
|
||||||
// uncomment for debugging purposes FIXME
|
// uncomment for debugging purposes
|
||||||
try {
|
// try {
|
||||||
em.flush(); // makes it slow, but produces better error messages
|
// em.flush(); // makes it slow, but produces better error messages
|
||||||
System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid());
|
// System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid());
|
||||||
return entity;
|
// return entity;
|
||||||
} catch (final Exception exc) {
|
// } catch (final Exception exc) {
|
||||||
throw exc; // for breakpoints
|
// throw exc; // for breakpoints
|
||||||
}
|
// }
|
||||||
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
|
Loading…
Reference in New Issue
Block a user