
Originally Posted by
hhoang
I also the same problem but unlike you I have only one field that is unique. I am wandering what is the common solution for this problem? I see many unanswer topics with this theme.
Also, sometimes you getting this exception org.hibernate.exception.ConstraintViolationExcepti on instead of the one you mentioned above.
Also, if you new record, this is the exception org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs) you would see.
Anyway, please let me know if you have it working with your problem.