向高手请教!!
HIBERNATE查询,方法是
public List findSomePerson3() {
List list = null;
try {
Session session = HibernateSessionFactory.getSession();
String hql = "select new List(pname,page) from Person";
list = session.createQuery(hql).list();
} catch (Exception e) {
System.err.println(e.getMessage());
} finally {
HibernateSessionFactory.closeSession();
}
return list;
}
结果显示为[FuJingZhou, 34],请问能让显示结果的中括号消失么?