I am trying to fetch the timestamp value from the DB using the below method:
public <T> List<T> query(
String sql,
SqlParameterSource paramSource,
RowMapper<T> rowMapper)
throws DataAccessException
But, I am getting the result in the format 2014-03-14. I wanted the result to be in 2014-03-14 10:23:43.
Please suggest the best method to retrieve the Timestamp.