You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BeanPropertyRowMapper should gracefully handle null return values for primitive types. Currently it will attempt to set the null value into the target bean, treating the primitive property the same way it would an Object property. In such cases, a pre-established default value would allow the retrieval to proceed. Currently the SQL for retrievals where this may occur require modification to add NVL() for all numeric fields that have the potential to be null.
Greg Nieman opened SPR-5588 and commented
Submitted on behalf of support client:
BeanPropertyRowMapper should gracefully handle null return values for primitive types. Currently it will attempt to set the null value into the target bean, treating the primitive property the same way it would an Object property. In such cases, a pre-established default value would allow the retrieval to proceed. Currently the SQL for retrievals where this may occur require modification to add NVL() for all numeric fields that have the potential to be null.
Affects: 3.0 M2
Referenced from: commits 360434d, 93c56f1
The text was updated successfully, but these errors were encountered: