View Single Post
  #2 (permalink)  
Old 07-02-2007, 06:22 PM
Heather Heather is offline
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
I would change the attributes to a Calendar type .
the mapping would be something like that:
Code:
<property name="date" type="calendar" column="finishdate"/>
Code:
Query query = getSession().createQuery(select .... where (req.date between :date1 and :date2) .setCalendar("date1 ",this.getYear()[0]) .setCalendar("date2",this.getYear()[1]);
Reply With Quote