Mike Haberman wrote:
>
> I was wondering if I can get your input regarding the use of native
> types in the BaseObject subclasses. The problem is that there is no
> way of detecting a null attribute. Right now all my integer fields
> are foreighn keys so that a value of 0 is null (for me). But, this might
> not be the case in the future.
>
> Any way, is anyone else running into this problem? We could solve
> it by
> 1. not using native types
+1
> 2. by including isNull() for each of the field types (if setXXX()
> is never called, isXXXNull() will be true).
> 3. I may be missing something and the solution already exists!
No, I am also trying to solve problems related to this.
>
> I realize both solutions will require people to rewrite a bunch of
> their code if they are using the 0 check (me included). It should
> be easy enough to update torque to use the wrapper classes.
>
> thanks!!
>
> mike
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]