I am new to HQL and have an SQL expression that I need to convert, but I cannot select the SQL statement:
select SenseDate as Time,SenseValue as Value from UserData where NetworkID = '23' and IODeviceID = '129' and SenseDate >= DateAdd("d",-1, GETDATE()) and SenseDate<=GETDATE()
I can run this part in HQL without problems:
from UserData where NetworkID = '23' and IODeviceID = '129' and SenseDate >= DateAdd(d,-1, GETDATE()) and SenseDate<=GETDATE()
However, I only need to return the values โโof SenseDate and SenseValue , can someone show me how to choose, as when trying to add select SenseDate, SenseValue , etc. I keep getting errors in Netbeans
java select hibernate hql
Patrick nevin
source share