Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- entityManager.persist(object);
- } catch (InvalidStateException e) {
- log.info("Caught Hibernate exception: #0", e.getClass().getName());
- InvalidValue[] invalidValues = e.getInvalidValues();
- for(InvalidValue invalidValue : invalidValues) {
- log.info("Invalid Property #0 has value: #1", invalidValue.getPropertyName(), invalidValue.getPropertyName());
- }
- }
- SQLException sqlException = ((JDBCException)ex).getSQLException();
Add Comment
Please, Sign In to add comment