List存放Object
List<Object[]> result = query.list();List<Company> companies = Lists.newArrayList();
for (Object[] obj : result) {
for (int i = 0; i < obj.length; i++)
companies.add((Company) obj[i]);//该怎么放???
}
异常1.java.lang.NullPointerException
异常2.java.lang.ClassCastException:java.lang.String cannot be cast to Company