This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate mapping types  RSS feed

 
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: 17309
11
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
Boost this thread!