为什么criteria.list();输出为空,但是criteria却是有对象的.Criteria criteria = session.createCriteria(BaseNodeInfo.class); criteria.add(Restrictions.ilike("compId", comp_id.trim())); criteria.add(Restrictions.ilike("compName", co
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 19:16:09
为什么criteria.list();输出为空,但是criteria却是有对象的.Criteria criteria = session.createCriteria(BaseNodeInfo.class); criteria.add(Restrictions.ilike("compId", comp_id.trim())); criteria.add(Restrictions.ilike("compName", co
为什么criteria.list();输出为空,但是criteria却是有对象的.
Criteria criteria = session.createCriteria(BaseNodeInfo.class);
criteria.add(Restrictions.ilike("compId", comp_id.trim()));
criteria.add(Restrictions.ilike("compName", comp_name.trim()));
criteria.add(Restrictions.like("nodeType", type));
criteria.add(Restrictions.ilike("addr", addr));
criteria.add(Restrictions.between("recordDate", barq1_1, barq1_2));
System.out.println("cr:"+criteria);
List list = criteria.list();
System.out.println("daxiao:"+list.size());
return list;
criteria.list();里面没有内容,这是为什么,参数在传递时都已经过来了.
为什么criteria.list();输出为空,但是criteria却是有对象的.Criteria criteria = session.createCriteria(BaseNodeInfo.class); criteria.add(Restrictions.ilike("compId", comp_id.trim())); criteria.add(Restrictions.ilike("compName", co
不明白啊