Hi,
I have a lame problem in that I have a legacy database with nullable numeric fields. For other reasons, I also have POJOs with regular primitive int properties that I dont want to convert to Integer. After reading the forums about this issue, it seems that I need to create a class that implments UserType to map nulls to 0. Is it possible to use the UserType to remap primitives? Does gets passed into deepCopy(Object o) for example.. I'm asuming it's Integer?
Is this the property way to do it?
Thanks!
joe
|