Dnia czwartek, 11 listopada 2004 13:49, Gerhard Grosse napisał: > Instead of tx.checkpoint() you can use ((TransactionExt) tx).flush(), > which flushes all SQL to the DB without commit. > > However, normally OJB does a pretty good job in ordering the SQL > correctly. Could it be that you have some cyclic references in your > object model (e.g. A->B and B->A)? > > Gerhard
Thanks for your help! With '((TransactionExt) tx).flush()' everything works good. (I can rollback the transaction when I want ;) ) However, I don't use cyclic references, thus my program should working fine in normally way (without flush and checkpoint). So, maybe I use something unsuitable? -jdk-1.5.0 -ojb-1.0.1 -PostgreSQL 7.4.5 and I use 'ojb-blank' from ojb.apache.org to make my example. -- | Grzegorz Pypeć <gregpyp(at)o2(dot)pl> | GG# 3744625 | | GPG: 21233D71C5C2BD765CF5A69648B26B957FF6CFFE -- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
