From the documents, you can see that the right way is to override the
getId(). But it isn't correct to setId for the update() or remove()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019152#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...