Stein M. Hugubakken wrote:
August Detlefsen wrote:
I recently ran into this and I'm interested to know if it is designed-in behavior, a bug, or a 'feature'. The abstract is that I needed to create a NavPageContent Object, then use its ID to formulate a link String, which was then set back into the same Object and persisted. When I tried something like this: db.create(page); String link = "/page/" + page.getId(); page.setLink(link); db.commit();
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.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project http://www.castor.org/
Apache Geronimo http://incubator.apache.org/projects/geronimo.html
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev