db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quinton McCombs" <qmcco...@nequalsone.com>
Subject RE: confused about required
Date Sat, 15 Mar 2003 21:22:34 GMT
Required=true should be set for columns that allow null.  It should
mirrow your database design.

--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:qmccombs@NequalsOne.com
http://www.NequalsOne.com 

> -----Original Message-----
> From: Dan Allen [mailto:dan@mojavelinux.com] 
> Sent: Saturday, March 15, 2003 12:41 PM
> To: torque-user@db.apache.org
> Subject: confused about required
> 
> 
> I am a bit confused about the required attribute.  If 
> required is set to false, the the column is set at NULL and 
> issuing the setXXX method after instantiation is not required 
> before save() is executed.  I guess this makes sense, but 
> what is the purpose of NULL really?  I always thought NULL 
> existed for one reason only, to allow integer values to blank 
> in columns of numeric type, so that an inproper 0 is not assumed.
> 
> I guess I am just looking for feeling, use cases on the 
> matter. When to set to required="false" and when not?  Having 
> difficulty deciding for each case.
> 
> Dan
> 
> -- 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> Daniel Allen, <dan@mojavelinux.com>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> "The package said 'Windows 95 or better', so I installed Linux"
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 

Mime
View raw message