Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate datetime

 
Baris Bicer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everbody
i have used hibernate3.2 + JSF1.2+ MsSql 2005
i have table that one column type datetime and checked allows null value.
one persist object correspond that column

public String getWorkdate()
{
return workdate;
}
public void setWorkdate(String murcth)
{
this.workdate = workdate;
}

if i not insert value in this columns that otomatically get like this value 1/1/1900 12:00:00 AM but i dont want to this value i want to null value display.
when i write sql command all of taht okey but with interface not
can you help me pls
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!