Since no explicit constructor for User or BaseUser created by Torque, the "key" field 
will be whatever default is. You can define a constructor for User(int, stiring, ...) 
so you can do all your initialization there.

Howard Lin

> -----Original Message-----
> From: Dan Allen [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 4:19 PM
> To: Turbine Torque Users List
> Subject: Re: updating a record
> 
> 
> > > > 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, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> "I'm old enough to know better, but still too young to care."
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to