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 luke cassady-dorion <lu...@netraker.com> on 2003/04/25 23:20:36 UTC
mapping zeros to null for bigint columns
i'm running into a problem related to the fact that java longs are not
really objects and can not be null, but the associated db column
(bigint) can.
in my java object, when there is no value for a given long it takes on a
value of zero, unfortunately this causes problems when the object is
persisted using ojb as it is saved as 0 instead of null (i have a fk
constraint on the column).
has anyone else had to deal with this?