开发者

Hibernate HQL query results problem

开发者 https://www.devze.com 2023-01-26 05:49 出处:网络
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:

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

精彩评论

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