> Castor will handle all of the above if the mapping descriptor is
> set up correctly. For Castor to persist the DimensionType object
> when the Project object is persisted, the object relationship must
> implment composition using the 'depends' keyword:
>
>
http://castor.exolab.org/castor-one.html#Dependent-and-related-relationships
Yes, the depends keyword was the missing piece of the puzzle. I had read
that section before but didn't understand the context at the time. I did
find some examples of one-to-one relations in the test cases starting with
the TestLazyEmployee case, which finally gave me the clue.
Hmmm... I might just get it in my head to write an article on Castor SQL
mappings (unless Dennis Sosnoski beats me to it). I would save other dummies
like myself a whole week of pain.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev