Hi Joerg, I hope now issue 1 is solved too ;-)
Regards, Oleg On Monday 01 March 2004 14:17, Joerg Heinicke wrote: > Oleg Nitz <on <at> ukr.net> writes: > > Hi Joerg, > > > > I think I have solved all the problems that you mentioned, and even more > > I confirm that otm-dependent="true" must be used with > > auto-update="false". Thank you very must for the ideal bug report! > > > > Regards, > > Oleg > > Hello Oleg ... and also the other people, > > I have tested your new code and it would work nicely if I would not want to > use it in another, maybe unexpected way :) The issues 2 and 3 are solved > completely for me, but not issue 1. I'm using OJB in combination with > Cocoon Forms framework aka Woody. Woody does the form binding to beans for > me, at the end I only want to tell OJB that it should update a modified > bean to the database, i.e. make the changes persistent. > > That means that I don't do (1) open tx, (2) change object, (3) commit tx, > but (1) change object, (2) open tx, (3) make changes persistent, (4) > commit tx. Besides the deleting of objects this works wonderfully. If I > really need to do the changes in a transaction, I need a second (in this > case debitor) object just for setting all the changes. As it works for > update without deleting in the expected way this would be somewhat > inconsistent. > > Is the current behaviour now a bug or intended? For modifying the dependent > test 2 I sent the patch to the test class below. With this change I can > reproduce my behaviour. > > Regards, > > Joerg > > Index: src/test/org/apache/ojb/otm/DependentTests.java > =================================================================== > RCS file: > /home/cvspublic/db-ojb/src/test/org/apache/ojb/otm/DependentTests.java,v > retrieving revision 1.3 > diff -r1.3 DependentTests.java > 180a181 > > > tx.commit(); > > 183a185,188 > > > tx = _kit.getTransaction(_conn); > > tx.begin(); > > _conn.makePersistent(debitor); > > 189a195 > > > assertTrue("person has correct type", > > (debitor.getAbstractPerson() > > instanceof NaturalPerson)); > > > > --------------------------------------------------------------------- > 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]