Boulay, Serge wrote: > Could someone please let me know the default behaviour of odmg . > > If and I have an Order object with a collection of Order items and I > lock the order object > > tx.lock(Order, Transaction.WRITE); > > > does odmg api write the Order Items objects collection to the > database or do you have to explict lock these objects ?
It depends if the collection type supports ODMG integration.
OJB ships with a set of ODMG persistent collection types (e.g. org.apache.odmg.collection.DListImpl) that do this.
But default Java Vectors etc. don't provide this.
cheers, Thomas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
