Re: Criteria needs write permissions?
Thomas Vandahl <[email protected]> Tue, 17 Nov 2009 20:08:19 +0100
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
Greg Monroe wrote:
> Connection srcConn = Torque.getConnection("databaseA");
> Connection destConn = Torque.getConnection("databaseB");
Don't want to be picky, but the recommended method is
Connection srcConn = Transaction.begin("databaseA");
> } finally {
> Torque.closeConnection(srcConn);
and Transaction.commit(srcConn), respectively.
BTW: The limitations with your described approach look serious to me.
You would need a lot of comments to explain what you're about to do,
wouldn't you?
Bye, Thomas.