Hi Lon,

Can you update all of your current "0" values to null?  Or set a PostLoad
handler on your Java class and set "0" to null when you load it from the DB?


On Mon, Apr 23, 2018 at 3:31 PM, Lon Varscsak <[email protected]>
wrote:

> I have a foreign key id that is 0 (zero).  Our old system would interpret
> this the same as it would for null.
>
> I'm trying to see where I could hook into the system so the Cayenne can
> convert these to null on the fly.  Any ideas?
>
> -Lon
>

Reply via email to