Bernard Sirius wrote:
do not recommend, it should be working, which
version of Andromda are 
you using?
    

RC1-SNAPSHOT

  
BTW 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 ONLY
      
conceptually
    
possible for a mandatory association since we have
      
to
    
hit 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 the
      
only
    
solution. Proxies?
 

      
I also use @andromda.persistence.foreign.identifier
to determine which 
side will hold the key
    

Is this mandatory with the use of proxied classes?
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.

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/


Reply via email to