| Yes, it is fetched in a projected distinct query as it is required to apply some additional restriction, it is not used on an object level. This is the reason why I'm asking for a toggle as automatically adding the order by in all cases increases the complexity when I want to provide cross db compatibility. The only approach I can currently use is to use a @Sort annotation instead of @OrderBy, but of course I'd prefer not to have an inmemory sort. |