• 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: 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
 
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!