Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- super.sessionFactory.getCurrentSession().createQuery(
- "select * from Appointment as appointment" +
- "where appointmentId in" +
- "(select appointment.appointmentId, MAX(timeSlot.startDate)" +
- "from Appointment as appointment" +
- "inner join TimeSlot as timeSlot" +
- "where appointment.patient = :patient)"
- ).setParameter("patient", patient).uniqueResult();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement