I'm encountering a problem with short transaction updates when I attempt
commit a changed object. 

The object has a property which is another Castor data object which itself
has a collection of Castor data objects. The relationship is 1 to 1 to many
in this case.  

The problem is that changes to the 1-many collection are not picked up and
persisted when the top-most object is updated in a short transaction.

Long transactions work fine for this but short transactions don't to work.

The code looks like this.

---
db.begin()

ApplicationObjectData persistedData = (ApplicationObjectData)
db.load(objectType,  identity);

// change persistedData so that the property that contains the collection is
different - in my case, has less contained items in the 1-many collection.

db.commit()
----

Any ideas why changes to this inner contained collection of objects are not
persisted in short transactions but work fine in long transactions?

thanks!

rich

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

Reply via email to