batch create date
table column type is
BATCH_CREATED_DATE DATE NOT NULL
With the data in that date column being similar to this ‘2010-05-13 14:56:36.0’
now I want to search for all items within the 24 hours of 2010-05-13, currently my call only returns all items with date “2010-05-13 14:56:36.0” exactly.
What would my HQL statement look like to hand this kind of scenario?
Depending on the parameters you’re going to pass, I can think of several solutions:
With
'2010-05-13 00:00:00.0'and'2010-05-13 23:59:59.9':With
'2010-05-13 00:00:00.0'and'2010-05-14 00:00:00.0':With
'2010-05-13 XX:XX:XX.X':