you could try the "table per subclass" inheritance strategy:
| @Entity
| @Inheritance(strategy=InheritanceType.JOINED)
| public class UserBase{ ... }
|
| @Entity
| public class User extends UserBase{ ... }
|
this way, there will be a table for UserBase objects and a table for User objects.
OR if you don't want UserBase to be an Entity you can use @MappedSuperclass on
UserBase.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067403#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...