标签: java mysql database hibernate
我正在尝试在两个日期之间获取一组结果 使用HQL
@NamedQuery( name = "getAppointmentsByDateWeek", query = "select a from Appointment a where a.appointmentDate BETWEEN :date1 AND :date2 " ),
但是命名参数不起作用,我不确定如何正确设置