Hi all.
I'm using hibernate with latest jboss realese (4,2). I got very strange error while using entity. I have few dates in my Entity:
Code:
@Basic
@Temporal(TemporalType.TIMESTAMP)
private Date purchaseDate;
@Basic
@Temporal(TemporalType.TIMESTAMP)
private Date saleDate;
@Basic
@Temporal(TemporalType.TIMESTAMP)
private Date warrantyStart;
@Basic
@Temporal(TemporalType.TIMESTAMP)
private Date warrantyEnd;
This entity worked fine in every place in my project. But when i updated my application and made database migration, only in one bean dates which i wrote above are resolved to be null. In other beans where i used this class dates has proper values from database.
It is a very strange error. I'm really confused and i don't have any ideas what to do to make this working. It cant be bad mapping because it worked before and works in other beans.