[jboss-user] [EJB 3.0] - Re: Inheritance of a pojo problem
waynebaylor
do-not-reply at jboss.com
Wed Jul 25 09:54:18 EDT 2007
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#4067403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067403
More information about the jboss-user
mailing list