开发者

Retrieve data from multiple tables using Hibernate

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

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

精彩评论

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