Forums Register Login

Hibernate mapping types

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1036 times.
Similar Threads
Oracle Date and Time problem
Generating the value of a property.
how to diplay correct date & time ???
how to set date format in hibernate mapping
HQL date without time
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:17:25.