Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- @Transactional(readOnly = true)
- public List<AppointmentBlock> getByDateAndLocationId(String date,Location location) {
- 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();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement