Sounds more like you have an entity with two primary keys.
Look if you have @Id defined twice or something like that.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139695#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...