Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate mapping types

 
srinivas.b
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I had a query regarding date data type as in hibernate document it was mentioned hibernate preserve full date and time information by mapping the property with a timestamp converter.

if we want to compare only dates without time stamp how to achive this?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Hibernate 3.x or JPA. In there there is an Annotation that you can attach and set it to just time only, date only, or date/time I believe it is the @Temporal annotation.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic