From: Christian B. <chr...@bl...> - 2002-12-15 16:30:58
|
On 15 Dec (08:17), Konstantin Priblouda wrote: > Suppose I try to implement following: > > Address -> Country. > > Both are persistent. Address belongs to > country. How do I implement this using hibernate? > Use country_id property in Address? > Set constraint on it? This could be mapped in different ways. Assuming that this type of association is a composition, you could use a component mapping: http://hibernate.bluemars.net/hib_docs/reference/html_single/#adv-or-mapping-s2 -- Christian Bauer tu...@in... |