I've been checking the Hibernate docs for the EntityManager and it suggests 
that the EntityManager should throw exceptions for errors that occur while 
interacting with the persistence layer see :-

http://docs.jboss.org/ejb3/HibernateEntityManager/reference/en/html_single/index.html#transactions-demarcation-exceptions

So can anybody comment on why the EntityManager does not throw an exception 
when I attempt to add two entities with duplicate data in a Field marked as 
Unique. As I stated earlier the EventListener and AbstractBatchers catch the 
exception and the JDBCExceptionReporter logs the exception, but that is no use 
to me when I need to deal with the exception in my StatelessSessionBean.

Any comments ?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887312#3887312

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887312


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to