Hi,


In case of many2many connection is there any other possiblility to change in 
the generated hbm file the inverse="true/false" property, but only in the name 
of the connecting entities?



In the source it looks like:



    /**

     * @see 
org.andromda.cartridges.hibernate.metafacades.HibernateEntityAssociationEnd#isHibernateInverse()

     */

    protected boolean handleIsHibernateInverse()



...

     // inverse can only be true if the relation is bidirectional

        boolean inverse = this.isNavigable() && 
this.getOtherEnd().isNavigable();

        if (inverse)

        {

            inverse = this.isMany2One();

            // for many-to-many we just put the flag on the side that

            // has the lexically longer fully qualified name for

            // it's type

            if (this.isMany2Many() && !inverse)



...



Thanks!
--
Ganszky, Balázs
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3370#3370
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to