Unable to locate appropriate constructor on class
在使用hql的时候,有时候查询的结果不需要所有字段只是部分字段,于是做如下修改。 String hql = "select new TForm4Notice(id,title) from TForm4Notice where isPub =1 order by showOrder desc,createTime desc"; 如果只是改了hql语句,其他地方没有配置,会直接报下面的错误。 org.…