title: HQL How to process equals for day of week and date without hour,minute,second?
body: <p>Model: Foo</p>
  
  <p>Fields: id(Long), barDate(Date), barDay(Integer 1..7)</p>
  
  <p>Database: Mysql</p>
  
  <p>How to query Foo when barDate is today (without care of hour, minute, second) or barDay is today's day of week?</p>
  
  <p>Could you give me a example by HQL or SQL? Thanks.</p>