db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Emminger <e...@ericemminger.com>
Subject Re: updating a record
Date Fri, 07 Mar 2003 15:31:19 GMT
> User user = new User();
> data.getParameters().setProperties(user); // much easier

Oops! I just realized this is the Torque list. The above is a Turbine 
trick and you may not necessarily be using Turbine. In that case, set 
the properties however you can. The rest of the code still applies. :)

> user.setNew(false);
> user.save(); // save()
> UserPeer.doUpdate(user); // or use the peer


Mime
View raw message