Even better, try using em.merge(...) instead of em.persist(...). That way if the entity
exists it will be merged and you won't get an exception.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047062#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...