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
Urgent: How to locate the current in use ID file in Lutus Notes 7
Respose time slow
Using Bash command in Perl Script
Blackberry browser 400 error - socketexception Connection reset
Reducing bandwidth consumption between domain controllors at multiple sites
Delphi Pagecontrol - each Tabsheet has its own popup menu
"Another installation in progress..." MSI Installer Issue in Windows Vista
page set up in a word
SQL 2008 Job can't start/stop services
Add DC to Windows Server 2003 Network - error msg