Bruce Snyder wrote:
Stein M. Hugubakken wrote:
Have you tried this approach? db.create(page); db.commit(); db.begin(); page.setLink("/page/" + page.getId()); db.update(); db.commit();
The only problem I see with the above example is that the page object is created in the first short tx but never updated in the second short tx.
That's correct,
db.create(page);
db.commit();
db.begin();
page.setLink("/page/" + page.getId());
db.update(page);
db.commit();Now it should work, or do I need more sleep?
Stein
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
