Skip to content

Commit

Permalink
#35: log entities in error during persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
kuros committed Oct 30, 2018
1 parent 4877be2 commit fabe96c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<groupId>com.github.kuros</groupId>
<artifactId>random-jpa</artifactId>
<version>0.6.6</version>
<version>0.6.7</version>
<name>${project.artifactId}</name>

<description>This project was born out of a need to create test data for complex database hierarchy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public T findOrSave(final T object) {
}
} catch (final ResultNotFoundException e) {
// Do nothing
} catch (final Exception e) {
throw new RandomJPAException("unable to save: " + object.getClass(), e);
}
}

Expand Down

0 comments on commit fabe96c

Please sign in to comment.