You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/07/08 12:33:29 UTC

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!