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
VNC server Ubuntu 10.04
How to make IN operator to accept CSV which are varchar in SQL Server 2008
compareTo() - JavaScript example needed
Access 2003 -> Word 2003 - have a question on code that works to save doc as pdf file...
Code was working in Android 2.1 SDK but not on 2.2
SPSS - Modify Output of Crosstabs
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Mac Mail only shows 90 days of deleted items
Built-In Webcam Stopped Working on Lenovo ThinkPad
Sort Mysql table with recent entries