Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. @Override
  2. @Transactional(readOnly = true)
  3. public List<AppointmentBlock> getByDateAndLocationId(String date,Location location) {
  4. return super.sessionFactory.getCurrentSession().createQuery("from " + mappedClass.getSimpleName() + " ab where ab.location = :location and ab.startDate like '%:date%'").setParameter("location", location).setParameter("date", "%"+date+"%").list();
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement