hql语句
select a from Attendance as a where 1=1 and substring(CONVERT(varchar(10),a.beginTime,111),0,11) ='2009/07/31'Hibernate 生成的sql语句为什么“substring(CONVERT(varchar(10), attendance0_.begin_time, 111))='2009/07/31'”少了两个参数Hibernate: select attendance0_.attendance_id as attendance1_7_, attendance0_.attendance_user as attendance2_7_, attendance0_.statu_id as statu3_7_, attendance0_.employee_id as employee4_7_, attendance0_.begin_time as begin5_7_, attendance0_.end_time as end6_7_, attendance0_.re as re7_ from Seedling.dbo.Attendance attendance0_ where 1=1 and substring(CONVERT(varchar(10), attendance0_.begin_time, 111))='2009/07/31' order by attendance0_.begin_time desc