You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
Sometimes there should be special sorting logic associated. For example we provide a read only property/column for an optional @ManyToOne association. If only regular sorting is applied, hibernate will use a left join or cross join to retrieve the items which will skip those items where the property is not set (is null). This can be fixed by explicitly adding an outer join via criteria API.
Currently there is no way to do this in EntityQuery. Because the EntityQueryFactory is final and most of the relevant methods are final or private the only way to address this problem is copying the EntityQuery code which is cumbersome.
Solution: Provide a mechanism to influence or manipulate sorting applied.
The text was updated successfully, but these errors were encountered:
Sometimes there should be special sorting logic associated. For example we provide a read only property/column for an optional
@ManyToOne
association. If only regular sorting is applied, hibernate will use a left join or cross join to retrieve the items which will skip those items where the property is not set (isnull
). This can be fixed by explicitly adding an outer join via criteria API.Currently there is no way to do this in
EntityQuery
. Because theEntityQueryFactory
is final and most of the relevant methods arefinal
orprivate
the only way to address this problem is copying theEntityQuery
code which is cumbersome.Solution: Provide a mechanism to influence or manipulate sorting applied.
The text was updated successfully, but these errors were encountered: