ConstraintViolationExceptions due to duplicate entries