i would write a test and see what happens ;)
Quoting Juan Antonio Calderón <[email protected]>:
Maybe DataIntegrityViolationException could be used, like in
UserManagerImpl.java?
Thanks.
2010/5/6 Juan Antonio <[email protected]>
Hello everybody.
I have a problem.
I generate a random field, that must be unique, and i need to catch the
exception thrown in the save() method in the DAO.
What is the exception thrown? Is an HibernateException, a
RuntimeException...?
I used to catch an ConstraintViolationException, could be this?
Thanks.
--
View this message in context:
http://appfuse.547863.n4.nabble.com/Exception-thrown-when-a-unique-field-in-database-is-duplicate-tp2131915p2131915.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]