Re: [Hibernate] another newbie question

2002-12-15 Thread Christian Bauer
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

[Hibernate] another newbie question

2002-12-15 Thread Konstantin Priblouda
Hi all, 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? What are proper hibernate mappings? regards, = Konstantin Priblouda ( ko5