You could always use inheritance, but it sounds like an instance variable that maintained a composition relationship would be a better, and more manageable, approach.
What's the big roadblock you're facing when implementing this? Is it a Hibernate mapping problem, or just a domain analysis problem from the object level?
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|