comment further down.

Jon Stevens wrote:
> 
> What are you sorry about?
> 
> Yes, Torque supports that...but like I have already said today, your
> database must also support it as well.
> 
> For example, here is the save() method that Torque generates for your
> BaseBusinessObject...
> 
>     /**
>      * Stores the object in the database.  If the object is new,
>      * it inserts it; otherwise an update is performed.
>      */
>     public void save(String dbName) throws Exception
>     {
>         DBConnection dbCon = null;
>          try
>         {
>             dbCon = BasePeer.beginTransaction(dbName);
>             save(dbCon);
>         }
>         catch(Exception e)
>         {
>             BasePeer.rollBackTransaction(dbCon);
>             throw e;
>         }
>         BasePeer.commitTransaction(dbCon);
> 
>      }
> 
> Speaking of which, why isn't that in BaseObject instead of the BaseBO?


save(dbCon) is a BaseBO method.

john mcnally

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to