db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject confused about required
Date Sat, 15 Mar 2003 18:40:39 GMT
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"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Mime
View raw message