| Null handling in 2.5 [message #1115879] |
Tue, 24 September 2013 14:16  |
jason zhang Messages: 15 Registered: July 2009 |
Junior Member |
|
|
I am using Postgresql and eclipselink 2.5. Instead of using JPA, I am using class descriptor/mapping API to establish mapping. I found all my float null value is shown as 0.0. I traced this down to org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.bypassDefaultNullValueCheck. If the value is null, and this field is false, eclipselink tries to convert null value to something. The problem is that this field bypassDefaultNullValueCheck is protected, I have no method to set it to true when I am using DirectToFieldMapping which is a subclass.
Is there a way to tell eclipselink not to touch null value?
thanks
-jason
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02771 seconds