Senior |
|
Joined: Mon Jul 07, 2008 4:35 pm Posts: 141 Location: Berlin
|
Hi caskater4,
why would you want to override the ID? I cannot see any need for that. The subclass will inherit the ID field and its property of being the primary key. This way Hibernate can support polymorphic queries.
If you have another candidate for a primary key in your subclass then you should be able to enforce data integrity with a UNIQUE constraint on that candidate, I suppose.
CU Froestel
_________________ Have you tried turning it off and on again? [Roy]
|
|