Microsoft
Software
Hardware
Network
Question : Hibernate HQL question
I'm a newbie to Hibernate:
Suppose in my Dao methdod:
@Override public List<client> getCilentRecord(Integer clientId) {
List<client> clients = getHibernateTemplate().fin
d(
"from clientRecord where clientId =?", clientId);
...
createdDate field is defined as datetime in the hibernate table.
Now I want to display today's data (createdDate = currentdate). how could I revise the HQL query above? Thanks for any hint.
Answer : Hibernate HQL question
"from clientRecord where clientId =? and createdDate=?", clientId, new Date());
Random Solutions
ATM clocking
Thunderbird EMail
How to request previous month's records in my sql's where clause?
Exchange 2010 Email policy
How to convert non ansi outer join =* to ansi outer join
TRANSACT SQL: COALESCE FUNCTION - DATE RANGES AND NULL VALUES
bootable usb
C++ permutation with replacement algorithm
How do I embed ajax calendar extender in asp.net gridview correctly?
GPO to ensure no users are able to bypass the Proxy when browsing the Internet (IE:7 and IE:8)