I'm having problem with date in Hibernate.
I'm retrieving an entity that have an attribute Date using get method of Hibernate, like this:
Object obj = getCurrentSession().get(Object.class,
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.
- date in database: 01/10/2012
- date retrieved by Hibernate: 01/09/2012
Is that problem with timezone or what?