Hi all, i've read some tutorials for Inheritance Mapping, which couldnt quitely solve my questions.
Say i have an abstract class : User And 3 more other subclasses : UserA, UserB, UserC, those all extend User.
Every Subclass has its own table, Superclass User, meanwhile, doesn't.
In my other class Website i have a ArrayList, or should i say Collections, of Users.
The list should fetch all users of the Website.
Which strategy should i use ? I thought of MappedSuperclass, but since in my Website class the List is of User type, so am not sure what to do here.
Thanks for any help!
|