persistence@glassfish.java.net

Re: using composition with JPA

From: sud <to_sud_at_yahoo.com>
Date: Mon, 23 Jul 2007 16:06:15 -0700 (PDT)

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 ____________________________________________________________________________________ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow