1) yes, probably EM should have thrown an exception - ask about this in the Hibernate or EJB3 forums (2) The best way to handle this is to check to see if an instance with the same name exists in the database *first*, rather than trying to do something that you know is possibly going to violate a constraint.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982277#3982277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982277 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
