1

当我使用 "sessionFactory.getCurrentSession().createQuery("from table").list();"

我得到以下 json 数据

---"{"records":"3","total":null,"rows":[{"appname":"frg","bl":"dfh","subbl":"jhf","appmanager":"fd","nrun":3,"isblore":"dfh","isupdated":"Yes","plandate":"2013-09-15","createdate":"2013-09-15","updateddate":1379919600000,"appcontact":"hg","id":4,"priority":"dfb"},--"

带有列和值

当我尝试的时候 "sessionFactory.getCurrentSession().createQuery(" select appname,bl,subbl.....from table").list();"

我得到以下 json 数据

---"{"records":"3","total":null,"rows":[[4,"frg","dfh","jhf","dfb","fd",3,"hg","Yes","dfh",1379228400000,1379919600000],"page":null} "

因此我无法在 jgrid 中显示我的数据。

请让我知道如何克服这个对象映射问题。

4

0 回答 0