From: Konstantin P. <kpr...@ya...> - 2002-12-18 10:47:55
|
Hi all, Documentation about "many to one" relation is a bit confusing. Suppose I have relation between customer & address: there is collection of addresses ( and I did not mastered yet to map it via xdoclet :) ), primaryAddress & billingAddress ( one of the defined adresses ) - so basically I have relation one-to-many for customer->address, but one-to-[one or zero] on primary & billing addresses. But I have to use @hibernate.one-to-many tag ( or one-to -many mapping element ) Isn't it a bit confusing? Or is there better way to do this? regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |