if an entity with that id already exists in the DB then you need to use merge() instead of
persist().
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089913#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...