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
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
Calculating the correct delay of clock cycles.
Manually Remove CITRIX XenApp v11
Easy to use student management software
Is it ok to plug a simple power strip into a UPS
CSS Template
Show only first 25 rows of querry result
Scripting help using LAST command
Excel treeview object
Setting Up Exchange Email on Apple IPAD