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
Cannot change display settings
XP 10 inbound connection limit question
IE8 cannot read Chinese
Lock down SMTP on Cisco ASA Or Exchange 2007 for MXlogic (Spam Filtering)
PHP/Javascript newbie - need help integrating niftycube into my site
Track external IP address in ASA.
how to save blackberry notes
Domain user account continuously getting locked out.
DAG & CAS array configured but it's not failover
blue screen on Server2003 install