You are about to open a pandora's box :)
Google "hashCode" and "equals" as it relates to EJB3 and Hibernate.
You'll find the answer to this question isn't as simple as you first think.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103889#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...