Beginner |
|
Joined: Wed Nov 19, 2003 6:46 pm Posts: 41 Location: Auckland, New Zealand
|
Just a few comments...
From a modelling perspective, I'm not sure that having an abstract base class for User and UserGroup would be something that I'd do. What do they share in common apart from a name? If you want to show how to implement inheritance in Hibernate, surely you can come up with something better. How about something that uses polymorphism?
Secondly, shouldn't your id field be of type Long - follow Hibernate's recommendation of using a nullable type for the ID.
|
|