subdigital wrote:
instead, try to map it where a person has a collection of Roles... and there would be a subclass for each role... CustomerRole, EmployeeRole, etc
Interesting. I have a similar project in the future that has sematics like this. The person can be Employee and/or Contact and/or Benficiary etc.
So, if the Person object has a collection of Roles then the types in that collection aren't all the same type. Isn't that going to confuse things? How would you map the collection in the Person object which has different types?
I have the Hibernate In Action book and I don't recall discussion of this modeling symantic. Any more concrete examples you could point to would be appreciated.
Thanks,
BOb