String queryString = "from Accommodation a " +
"inner join fetch a.schedule " +
"inner join fetch a.customer " +
"inner join fetch a.member " +
"where to_char(a.arrivetime,'yyyy-MM-dd') = ?";
List<Accommodation> list = getHibernateTemplate().find(queryString, date);
if(list.size()>0){
System.out.println(list.get(0).getPhone()+"....");
return list;
}
else
return null;
}
DAO.AccommodationDAO.findBytime(AccommodationDAO.java:203)
service.AccommodationService.findBytime(AccommodationService.java:50)
action.AccommodationAction.ShowToday(AccommodationAction.java:73)