I seem to have hit a catch-22 situation when trying to create an object Contract
that has an N:1 relationship to an independent object Licensee that already
exists.  When I don't have autostore on the the Licensee is not loaded, so
I get a PersistenceException: Object, ContractImpl, links to another object,
LicenseeImpl that is not loaded/updated/created in this transaction.  When I
turn autostore on, then I get a DuplicateIdentityException when Castor tries to
create the Licensee.  By the way, I am using the latest CVS version of Castor.
I think this has something to do with the fact that in the update method in
ClassMolder, objects are only loaded if there are dependent or if autostore is
on.  Is this a bug or was Castor not designed this way?

Thanks.

--
Chris Bonham
President/CEO
Third Eye Consulting, Inc.
[EMAIL PROTECTED]
http://www.thirdeyeconsulting.com
317.823.3686
317.823.0353 (FAX)

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to