I have a custom repository implementation with QueryDsl predicate. When I sort by property of an associated object query that gets generated uses inner join instead left join statement.
I also have a custom repository implementation with JpaSpecification executor. There everything works well.
thanks for the useful testcase! It turns out that this is not a problem of spring data jpa but rather a bug in querydsl.
I filed: querydsl/querydsl#551
As a workaround I'd suggest to use a custom repository method or a JPAQL/SQL query.
spring-projects-issues commentedNov 14, 2013
petar zrinščak opened DATAJPA-427 and commented
I have a custom repository implementation with QueryDsl predicate. When I sort by property of an associated object query that gets generated uses inner join instead left join statement.
I also have a custom repository implementation with JpaSpecification executor. There everything works well.
I have attached a test case
Affects: 1.4.2 (Babbage SR1)
Attachments:
Issue Links:
Backported to: 1.4.3 (Babbage SR2)
The text was updated successfully, but these errors were encountered: