Hi all,

The Hibernate cartridge generates inverse=true tags now. Tonight, I
checked the code into CVS.

This is how it detects "inverse":

* For unidirectional associations, inverse is always false (absent).
This is because if it were true, changes to the association would not
be persisted.

* For bidirectional one-to-many associations, inverse=true is set on the
"one" side.

* For bidirectional one-to-one assoc.s, inverse=true is set on the side
that has an aggregation or a composition diamond in the UML model.

* For bidirectional many-to-many assoc.s, inverse=true is set on one of
the two sides, randomly chosen (that one with the lexically smaller
fully qualified classifier name).

Please test this and tell me if you need more rules beyond these or
even need a tagged value - I was trying to avoid a tagged value and
make the inverse-detection fully automatic.

Cheers...
Matthias

---

Matthias Bohlen
"Consulting that helps project teams to succeed..."

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]

Phone: +49 (170) 772 8545





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to