Re: null values in primitive fields

2000-08-29 Thread William Louth
Hi Adena, The standard way is to use the class version of the primitive i.e. instead of int use Integer. You can then check if the value was set by (fld1==null). And the jdbc code for inserting a null value is easy and handled by the driver and not your code used to implement you own standard. No

Re: null values in primitive fields

2000-08-28 Thread Adena Galinsky
:) eek. thanks! -Original Message- From: Evan Ireland [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 6:51 PM To: [EMAIL PROTECTED] Subject: Re: [EJB-INT] null values in primitive fields Adena Galinsky wrote: > > Some of our optional fields are represented as primitive types

Re: null values in primitive fields

2000-08-28 Thread Evan Ireland
Adena Galinsky wrote: > > Some of our optional fields are represented as primitive types (int, long > etc) in our entity beans and in the (Oracle) database. > What is the standard way of indicating that the value was left blank? We > have created our own standard (-1 = null), but if there's a sta