Sud,Why don't you have an IDclass which will contain all the id primary key ofall the entity class involved in the composition. So it then resolves the ManyToManyissue. So then you will state within each entity the id primary key referring from the IDclass.eveDate: Mon, 23 Jul 2007 16:06:15 -0700From: to_sud_at_yahoo.comTo: persistence_at_glassfish.dev.java.netSubject: Re: using composition with JPA
Inheritance is not possible because the domain classes are really different with different properties and behavior. If I were to use any of the ToMany annotations wouldn't that put back me in a situation of an aggregation where I don't have a snapshot of Class A in Class B. Instead I have a reference to Class A in Class B? Or is there a specific annotation you are mentioning.-sud
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com/index2.html