We are using cayenne and found a bug in class:
problem occurs when we have NUMERIC(12, 0) which is more then Integer! (Integer has only 10 digets).
And we wish to conver it to Long not to louse any digets.
I can sugest to use sumething like this: