> instantiate
> populate
>
> aCD.setLocation(aLocation);
>
> aLocation.save();
> aCD.save();
>
> john mcnally
>
Just my 2c. This example is probably good enough, but if you're using a
transactional db and it is important to you, for whatever reason, can do
this:
DBConnection dbCon = BasePeer.beginTransaction()
try
{
aLocation.save(dbCon);
aCD.save(dbCon);
BasePeer.commitTransaction (dbCon);
}
catch (Exception e)
{
Log.error (e);
BasePeer.rollbackTransaction (dbCon);
}
~ Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Peers: Inserts with Multiple Tables Saimon Moore
- Re: Peers: Inserts with Multiple Tables John McNally
- Re: Peers: Inserts with Multiple Tables Jon Stevens
- Java servlet container vulnerabilties Rodney Schneider
- Re: Peers: Inserts with Multiple Tables Saimon Moore
- Re: Peers: Inserts with Multiple Tables Jon Stevens
- Re: Peers: Inserts with Multiple Tables Saimon Moore
- Re: Peers: Inserts with Multiple Tables Leon Messerschmidt
- Re: Peers: Inserts with Multiple Tables John McNally
- Re: Peers: Inserts with Multiple Tables John McNally
- RE: Peers: Inserts with Multiple Tables Saimon Moore
- Re: Peers: Inserts with Multiple Tables Jon Stevens
- Re: Peers: Inserts with Multiple Tables John McNally
- Re: Peers: Inserts with Multiple Tables Jon Stevens
