I have a UserEntity class with many properties common to a typical user in a web application. I am attempting to instantiate, populate and persist a new UserEntity object to my database, and I am getting the following exception:
Code:
2010-03-30 16:39:12,865 INFO [STDOUT] (HDScanner) Hibernate:
/* insert com.db.model.User
*/ insert
into
public.user
(creation_date, deleted, last_modified_by, last_update, version, email, first_name, gender, last_name, middle_name, enabled, encrypted_password, nbr_failed_logins, last_access, lastIP, lastUserAgent, nbr_sessions, pin, role_type, username, user_id)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2010-03-30 16:39:12,875 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (HDScanner) [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@4df997bb
javax.persistence.PersistenceException: javax.validation.ConstraintViolationException: validation failed for classes [com.db.model.User] duringpersist time for groups [javax.validation.groups.Default, ]
But there is nothing telling me the specific validation that failed! Is it possible to determine what failed, and if so, how do I go about that?
Thank you.