Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Provide a possibility for EntityQuery to provide new sort mappings #87

Open
StefanPenndorf opened this issue Jan 22, 2016 · 1 comment

Comments

@StefanPenndorf
Copy link

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.

@tlaukkan
Copy link
Owner

Hi, it would be much appreciated if you can contribute this behavior to LQC.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants