I am using Spring JDBCTemplate to conneect DB. When I am selecting date in DB using below query 

`select to_date(valid_to,'DD-MM-YYYY HH24:MI:SS') from composition`

output is, 31-12-99 23:59:59.

But, when I am using the same with JDBCTemplate like below,

```
Date d = jdbcTemplate.queryForObject("select to_date(valid_to,'DD-MM-YY HH24:MI:SS') from composition",Date.class);

```

outpt is 2099-12-31 00:00:00.0.

Time is not correct. I also need the same time in Date class. How to get that?