Required=true should be set for columns that allow null.  It should
mirrow your database design.

--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -----Original Message-----
> From: Dan Allen [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, March 15, 2003 12:41 PM
> To: [EMAIL PROTECTED]
> 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, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> "The package said 'Windows 95 or better', so I installed Linux"
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> ---------------------------------------------------------------------
> 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