Problem
Hibernate - How to join unlink Entities?
Solution
In the latest version of Hibernate i.e. 5.1 onward, you can join the unlink entities like SQL style
Query<Person> query = session.createQuery( "select p from Person p join Gender g on g.id = p.genderId ");
Comments
Post a Comment