how would this effect this case:

column is smallint, representing a boolean value (0-false,1-true) -
currently by using primitives, I can 
do a selection on the column being "true" or "false" and torque translates
correctly for me. Will the same hold true with objects?

> -----Original Message-----
> From: John McNally [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 6:13 PM
> To: Turbine Torque Developers List
> Subject: Re: bug report:
> 
> 
> There is a javaType="object" attribute on <column> that can be used to
> avoid using primitives. 
> 
> john mcnally
> 
> On Thu, 2002-08-29 at 17:06, Russell Smyth wrote:
> > I have come across a problem with torque that may be 
> brought up by my
> > particular use:
> > 
> > Torque is unable to delete records that contain NULL values 
> in fields that
> > map to java primitive types - if you get the object then try
> > Peer.delete(Object) - this is due to Torque filling in the 
> criteria for
> > delet from the object, which of course will set null 
> primitives to a default
> > value (ie int to "0"), which will not match with the null 
> in the database.
> > 
> > Many would argue (some here have) that these types of 
> fields should not be
> > null in the database - however, I am dealing with legacy 
> databases and it
> > cannot be avoided.
> > 
> > Russell Smyth
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to