[Solved] Null result for date object fetched from DB giving sysDate/current date on mapping to Java object


Found the reason.

When the BeanPropertyRowMapper was provided with Date.class for mapping,
new Date() is called for instantiation of the class like for any object.

But for Date.class, new Date() returns sysDate.

solved Null result for date object fetched from DB giving sysDate/current date on mapping to Java object