Hi again, > -----Original Message----- > From: Miroslav Lazarevic [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 10:12 AM > To: OJB Users List > Subject: Re: ODMG and collection descriptor > > > On Tuesday 03 June 2003 18:42, Thomas Mahler wrote: > > > > Yes, you have to lock the elements of the N side collection > to the open > > ODMG transaction! > > Otherwise OJB/ODMG won't detect the changes to those > objects and thus > > won't perform any updates for them. > > > > If you are using the ODMG persistent collections like DList > you don't > > have to do the locking, as they cooperate with the > transaction mechanism. > > > > DLists are also very handy for m:n associations, as you > don't need an > > intermediary table, OJB is doing all the management stuff for you... > > > > Hi Thomas, > > I tried to implement this, but I hadn't success. Could you > give me a some > example of using DList for collections? How must repository > look like for in > this case? Does object which I store must have a collection > of DList type?
correct the collection attribute should be typed as DList. the respective collecion descriptor in repository.xml could look like follows: <collection-descriptor name="myListAttribute" collection-class="org.apache.ojb.odmg.collections.DListImpl" element-class-ref="com.my.ListEntry" /> cheers, thomas > > Please, help me about this. > > -- > Best regards, > Mickey [EMAIL PROTECTED], [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
