开发者

Hibernate HQL query results problem

In the web application I'm developing I use this query "from Messages".Although t开发者_开发技巧here are 13 records in messages table at my database,when I print the results I get this: 1) id:0 mesname:bla message:bla,bla 2) id:0 mesname:bla1 message:bla1,bla1. In other words although all the fields of Messages Pojo are set correctly the id field is always 0 as if it is never set. What am I doing wrong?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜