This content has been marked as final.
Show 2 replies
-
1. Re: Inheritance of a pojo problem
waynebaylor Jul 25, 2007 9:54 AM (in response to emailmsgbox)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. -
2. Re: Inheritance of a pojo problem
emailmsgbox Jul 29, 2007 4:43 AM (in response to emailmsgbox)Thanks , its works