Bernard Sirius wrote: no actually it is not related to proxies, it is just to determine wich side will hold the key (it is the way I solve the 1-1 associations), proxies are just about how hibernate will load the associations. and no related with @andromda.persistence.foreign.identifier.do not recommend, it should be working, which version of Andromda are you using?RC1-SNAPSHOTBTW I just saw that hibernate has a faq entry about this: How do I set up a 1-to-1 relationship as lazy? Use <one-to-one constrained="true" outer-join="false" class="Foo"/> with a proxied class, Foo. This is ONLYconceptuallypossible for a mandatory association since we havetohit the other table to determine whether the association is null or not! </quote> So how do you guys do? This is obviously an issue, since models are plenty of 1-1 associations... I guess. You are using proxies, right? This is theonlysolution. Proxies?I also use @andromda.persistence.foreign.identifier to determine which side will hold the keyIs this mandatory with the use of proxied classes? are you using customized templates or something that may affect to the generation process? Carlos bernard __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ |