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
jquery modal confirm how to pass url
wm_concat
Online Forms and SQL
iPhone ActiveSync error: Cannot Get Mail The connection to the server failed. New DigiCert certificate
Recommended approach to consolidating relational CSV data in Excel....
asp.net I have a situation where I need to forms on a page??
Internet Explorer blocking javascript
how to permanently delete wireless profiles
How to test on an Android device
SQL in C# code .. Reading Output Parameters.