Statement « JPA « JSF Q&A





1. Hibernate, get datas from both tables in a join statement    stackoverflow.com

I want to use below code and want to get datas from both tables, but how? There aren't any association in my hibernate mapping files.

SQLQuery query = session.createSQLQuery("SELECT cat.* from ...