Hibernate version:
3.2.0.ga
Name and version of the database you are using:
PostgreSQL 8.1.3
I need to create a left join in a Criteria query. I've searched in the forum, but I didn't find anything...
In google search, some people say to use:
Code:
criteria.setFetchMode("table2",FetchMode.EAGER)
but FetchMode.EAGER ia deprecated, and the solution didn't work.
I needsomething like this:
Code:
Criteria criteriaTable1 = session.createCriteria(Table1.class);
Criteria criteriaTable2 = criteriaTable1.createCriteria("table2");
criteriaTable2setFetchMode("table3", FetchMode.EAGER);
Criteria criteriaTable3 = criteriaTable2.createCriteria("table3");
I need a left join between the Table2 and Table3, cause I'll put some orders in the criteriaTable3
thanks
Robson