I'm trying to do a simple persist with a POJO. It works the first time. When I change the @ID field value and try to persist it again, I get an exception (see below).
Is there a way to get more information than this? It is probably an SQLException but I can't figure out how to find out what it is.
Hibernate: insert into APPLICATIONTYPE (ARCH, BASEDIR, CATEGORY, DESCRIPTION, HOTLINE, INSTANCE_, INSTDATE, LONGNAME, PSTAMP, STATUS, VENDOR, VERSION_, NAME_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into APPLICATIONTYPE (ARCH, BASEDIR, CATEGORY, DESCRIPTION, HOTLINE, INSTANCE_, INSTDATE, LONGNAME, PSTAMP, STATUS, VENDOR, VERSION_, NAME_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
javax.transaction.RollbackException: Transaction marked for rollback.
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:440)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:197)
|