> 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]

Reply via email to