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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class ProjectionJoinIntegrationTests {
|
||||
|
||||
@Autowired private UserRepository userRepository;
|
||||
|
||||
@Test
|
||||
@Test // DATAJPA-1418
|
||||
public void findByIdPerformsAnOuterJoin() {
|
||||
User user = userRepository.save(new User());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user