in elements()在HQL中可以这样用

StringBuffer noticeHql = new StringBuffer("select t from CourseNotice t,EnrClass eClass where t.fstate=0");
		noticeHql.append(" and t.teachArrangement in elements( eClass.teachArrangements)");
		noticeHql.append(" and eClass.fid=:enrClassId");
		noticeHql.append(" order by t.fpublishtime desc");

你可能感兴趣的:(element)