hello,
i wanna catch ConstraintViolationExceptions when persisting an entity, i
noticed i had no result at first so i tried this :
| try {
| if (e.getId() == 0 ) {em.persist(e);}
| else { em.merge(e);}
| } catch (Exception exception) {
| logger.info("Caught exception from EntityManager.");
| }
|
which gives no result. it seems the exception isn't thrown by the EntityManager
operations? i do see the exception in the JBoss log as usual though
anybody got an idea ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913546#3913546
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913546
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user