db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject Re: updating a record
Date Fri, 07 Mar 2003 21:19:23 GMT
> > > User user = new User();
> > > data.getParameters().setProperties(user); // much easier
One more question, do I have to hit all the properties or can I skip
some of them to leave them as is.  For instance, if I had fields:

user_id
username
password
key

and I did

User user = new User();
user.setUserId(3);
user.setUsername("foo");
user.setPassword("bar");
user.setNew(false);
user.save();

Will it automatically leave the "key" field as is?  If that is the
case, I am cookin' with gas!

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"I'm old enough to know better, but still too young to care."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Mime
View raw message