DATAJPA-1418 - Polishing.

Added comment with issue id on the test.
Added a comment with a link to the Hibernate issue.

Original pull request: #294.
This commit is contained in:
Jens Schauder
2018-10-17 11:06:09 +02:00
parent 64762d0f8b
commit 54fe0aed27
2 changed files with 4 additions and 1 deletions

View File

@@ -633,6 +633,9 @@ public abstract class QueryUtils {
return false;
}
// if this path is part of the select list we need to generate an explicit outer join in order to prevent Hibernate
// to use an inner join instead.
// see https://hibernate.atlassian.net/browse/HHH-12999.
if (isLeafProperty && !isForSelection && !attribute.isCollection()) {
return false;
}

View File

@@ -47,7 +47,7 @@ public class ProjectionJoinIntegrationTests {
@Autowired private UserRepository userRepository;
@Test
@Test // DATAJPA-1418
public void findByIdPerformsAnOuterJoin() {
User user = userRepository.save(new User());