aspose file tools
The moose likes Object Relational Mapping and the fly likes Missing Time when retrieving from HQL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Missing Time when retrieving from HQL" Watch "Missing Time when retrieving from HQL" New topic
Author

Missing Time when retrieving from HQL

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 744
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
Bartender

Joined: Mar 07, 2010
Posts: 1282

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: http://aspose.com/file-tools
 
subject: Missing Time when retrieving from HQL
 
Similar Threads
Prepared Statement and Date class - Problem still exists
Hibernate Select - Criteria with a Date
hibernate undefined alias : 1 error
Hibernate Date Issue
values change unexpectedly due to threading issue?