想用hibernate的findByExample方法查寻.查的是所有记录中,某几个字段记录值为空的记录.Pojo p= new Pojo();//id,name,a,b
p.a=null;//如果字段a,b值为空则读取
p.b=null;
List list=(List)getTemplate().findByExample(p);但是貌似这样说不过去,因为new的pojo所有字段的值都是空的吧...