Hibernate N+1 from select across multiple tables
- by Marty Pitt
Given the following hibernate query:
String sql = "select distinct changeset " +
"from Changeset changeset " +
"join fetch changeset.changeEntries as changeEntry " +
"join fetch changeEntry.repositoryEntity as repositoryEntity " +
"join fetch repositoryEntity.project as project " +
"join fetch changeset.author as…