title: Hibernate criteria get all rows where currentDate > startDate and < endDate
body: <p>I need get all rows where current date contains beetwen dateStart and dateAnd.</p>
  
  <p>if current date - 17 JAN 2017 and</p>
  
  <pre><code>id  dateStart     dateEnd
  0   01 JAN 2017   18 JAN 2017
  1   01 JAN 2017   16 JAN 2017
  2   18 JAN 2017   03 FEB 2017
  4   17 JAN 2017   16 JAN 2017
  </code></pre>
  
  <p>I need get 2 rows with 0 and 4 ID in table</p>
  
  <pre><code>@Override
      public List&lt;Raffle&gt; findCurrentRaffle() {
          Criteria criteria = getSession().createCriteria(Raffle.class);
          criteria.add(Restrictions.ge("dateStart",  new Date()));
          criteria.add(Restrictions.le("dateEnd", new Date()));
          return criteria.list();
      }
  </code></pre>
  
  <p>return 0 rows</p>
  
  <pre><code>private Long id;
      @Column(name = "dateStart")
      @Temporal(TemporalType.TIMESTAMP)
      private Date dateStart;
      @Column(name = "dateEnd")
      @Temporal(TemporalType.TIMESTAMP)
      private Date dateEnd;
  </code></pre>