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
Simple Routine Fails
How can I detect a pixel color of an image in Flash using ActionScript 2?
W3WP.exe uses 100% CPU at some times.
windows server 2008 foundation
Riverbed with Cisco GRE Tunnel
recover exchange database from sbs 2008
Odd Copy and Paste Symbol
No icon on desk top windows XP
system info via website
C# convert military time to standard time