conn = Transaction.beginOptional("yourb DB name", true);More standard would be to replace the first line above with:
// then save with the conn object contact.save(conn ); company.setContact(contact); company.save(conn );
Transaction.commit(conn);
conn = Transaction.begin("yourb DB name");
Or better still, instead of the above just go:
company.setContact(contact); company.save();
and let Torque take care of the additional save including the transaction.
Scott --
Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]