开发者

Retrieve data from multiple tables using Hibernate

How can i fetch data from multiple tables in a database (mysql) using hibernate... Can any o开发者_JS百科ne help me out in this regard... a sample example will be of great help, if possible.

Thanks. Uday.


You could possibly use some custom sql to pull from the two tables and then map the output of that to the entity in question.

http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querysql.html#querysql-creating

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜