-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can't read date from database
PostPosted: Mon Mar 31, 2008 4:46 am 
Newbie

Joined: Mon Mar 31, 2008 4:12 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.