Hibernate / Hibernate interview questions II
How do I implement Joins in Hibernate?
There are several ways to implement joins in hibernate.
- By using associations such as one-to-one, one-to-many mappings.
- Using JOIN in the HQL query. There is another form 'join fetch' to load associated data simultaneously and it is no lazy loading.
- execute native sql query and use join keyword.
More Related questions...