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
Caml Query on Item versiion History
Database on a 64 bit OS - Conection issues
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
ant carrying their own
User's Web-Based AOL Mail is sending spam to all his contacts
"Could not find schema information for ... "
Outlook 2007 w/ Exchange 2010 empty folder
BFILE to BLOB
Query not inserting rows into table
Exchange 2010 Public Folder Error