Hi,
I have the following query in SQL
Code:
Select
count(*) as cnt,
DATE_FORMAT(CONVERT_TZ(wrdTrk.createdOnGMTDate,'+00:00',:zone),'%Y-%m-%d') as dat
from
t_twitter_tracking wrdTrk
where
wrdTrk.word like (:word) and wrdTrk.createdOnGMTDate between :stDate and :endDate group by dat;
I am in the process of migrating all this to Hibernate, I have two questions related to this,
1. How can I write the same query in HQL?
2. Can hibernate cache (ehcache) cache native SQL and how does it work. It would be great if someon can point me to the right direction to understand caching of Native SQL queries
Regards,
Rohit