-->
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.  [ 2 posts ] 
Author Message
 Post subject: Date method always returns null
PostPosted: Wed Jan 27, 2010 1:34 pm 
Newbie

Joined: Wed Jan 27, 2010 1:28 pm
Posts: 2
I have a date column defined as java.util.Date in the mapping file and java.util.Date in the bean. When pulling a record from the db the variable is always null. Really can't get my head round this one.

Code:
<property name="dueDate" type="java.util.Date" column="DUEDATE"/>

Code:
private Date    dueDate;
...
public Date getDueDate()          {return this.dueDate;   }
public void setDueDate(Date d)    {this.dueDate = d;


I'm using Oracle 10g.

Thanks.


Top
 Profile  
 
 Post subject: Re: Date method always returns null
PostPosted: Wed Jan 27, 2010 8:54 pm 
Newbie

Joined: Wed Jan 27, 2010 1:28 pm
Posts: 2
In the interests of closure, this has been resolved. Anyone who uses Oracle will know how important the commit statement is.


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

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.