I'm having problem with date in Hibernate.
My scenario:
I'm retrieving an entity that have an attribute Date using get method of Hibernate, like this:
Code:
Object obj = getCurrentSession().get(Object.class,
id);
The Object in my scenario is an entity.
The hibernate runs the statement and retrieves the date with one day less. I executed the select that Hibernate generate and the date was retrieved correct.
For example:
- date in database: 01/10/2012
- date retrieved by Hibernate: 01/09/2012
Is that problem with timezone or what?
Thanks.