Hi Chad,

Saturday, February 12, 2005, 5:07:00 PM, you wrote:

CB> Ok the reason all-delete-orphan is not set in your case is because
CB> it's not valid in a one-to-one relation, it can only be used from
CB> either a list, set, bag, idbag, or map:
CB> http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd

very strange, indeed! Why shouldn't it be used in a one-to-one
association, too?

OK, so what we really need is this (again, the example is
User<>-Address with a black diamond on the User side of the 1-to-1
composition):

* If User has default-cascade="save-update" or default-cascade="all"
then Address should be mapped with <many-to-one cascade="all" ... />

* If User has defaultcascade="none" or default-cascade=<not specified>
then Address should be mapped with <many-to-one cascade="delete" .../>

Do you agree? Could you please change the code of the Spring cartridge
accordingly?

Thanks a lot...
Matthias

---

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

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

Phone: +49 (170) 772 8545




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to