Sort problem with mix of optional and non optional associations, null values are filtered [DATAJPA-1572] #1882
Labels
in: core
Issues in core support
status: duplicate
A duplicate of another issue
type: bug
A general bug
Sviataslau Apanasionak opened DATAJPA-1572 and commented
Given following entities:
User has optional
@ManyToOne
.Room has non optional
@ManyToOne
(this optional attribute creates issue).Then I create two users, one has room, second doesn't have.
I try to get users sorted by floor number:
Expected that list size would be 2, but it's 1.
The following query is generated:
The query contains unexpected cross join which filter null values.
Expected behavior: if root entity has optional association, for all entities in path only left join must be used inspite of having non optional associations
Affects: 1.11.22 (Ingalls SR22), 2.1.9 (Lovelace SR9)
Attachments:
Referenced from: pull request #391
The text was updated successfully, but these errors were encountered: