Tx !!

-----Message d'origine-----
De�: Charles Anthony [mailto:[EMAIL PROTECTED] 
Envoy�: mardi 8 juillet 2003 17:30
��: 'OJB Users List'
Objet�: RE: RE : How to insert a long / FK nullable with a null value ?

FieldConversion, not FieldCompletion

More info here .....
http://db.apache.org/ojb/jdbc-types.html

>-----Original Message-----
>From: Emmanuel Dupont [mailto:[EMAIL PROTECTED]
>Sent: 08 July 2003 16:30
>To: 'OJB Users List'
>Subject: RE : How to insert a long / FK nullable with a null value ?
>
>
>Hi Thomas !
>
>Where can I find some sample with the FieldCompletion ? I 
>don't knopw how to
>use it ands I didn't found anything in the doc , maillist and 
>tutorial ...
>
>
>Tx !
>
>
>
>
>
>-----Message d'origine-----
>De�: Mahler Thomas [mailto:[EMAIL PROTECTED] 
>Envoy�: mardi 8 juillet 2003 14:59
>��: 'OJB Users List'
>Objet�: RE: How to insert a long / FK nullable with a null value ?
>
>You could also use a special FieldConversion to convert zero 
>to null and
>vice versa.
>Have a look at
>o.a.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion and
>BlankString2NullFieldConversion.
>
>cheers,
>Thomas
>
>> -----Original Message-----
>> From: Bram Meijboom [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 08, 2003 12:36 PM
>> To: 'OJB Users List'
>> Subject: RE: How to insert a long / FK nullable with a null value ?
>> 
>> 
>> make it a Long object and set it to null ....
>> 
>> 
>> -----Original Message-----
>> From: Emmanuel Dupont [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 08, 2003 12:33 PM
>> To: OJB Users List
>> Subject: How to insert a long / FK nullable with a null value ?
>> 
>> 
>> All,
>> 
>>  
>> 
>>  
>> 
>> I have a table with a Foreign Key witch is null able. The JDO's java
>> object's attribute associated to this table's column is a "long".
>> 
>>  
>> 
>> My trouble is that OJB insert "0" each time nothing is 
>> specified in the JDO
>> attribute. But '0' is not a good thing for my application; I 
>> would like to
>> have null value. 
>> 
>>  
>> 
>> But how could I have a null value with a long type ??
>> 
>>  
>> 
>>  
>> 
>> Thanks a lot!
>> 
>>  
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]
>


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



---------------------------------------------------------------------
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