This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Missing Time when retrieving from HQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Missing Time when retrieving from HQL" Watch "Missing Time when retrieving from HQL" New topic

Missing Time when retrieving from HQL

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 760
Hi I am facing strange issue, when i execute HQL my result only show DATE instead of TIMESTAMP.

Below are my mapping and Domain Object

from hbm.xml

from Domain

And below is my HQL

Jigar Naik

Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Consider using criteria for dynamic queries like this. What is the data type of you column in the database. Have you verified that time is indeed being stored correctly?

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: Missing Time when retrieving from HQL
It's not a secret anymore!