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
The org.springframework.data.domain.Sort.NullHandling API provides for NULLS_FIRST and NULLS_LAST but in practice anything other than NATIVE throws UsupportedOperationException at org.springframework.data.jpa.repository.query.QueryUtils.java line 757:
if (order.getNullHandling() != Sort.NullHandling.NATIVE) {
throw new UnsupportedOperationException("Applying Null Precedence using Criteria Queries is not yet supported.");
}
The text was updated successfully, but these errors were encountered:
Null Precedence using Criteria Query is specified with JPA 3.2 (https://jakarta.ee/specifications/persistence/3.2/). Before that, we cannot set null precedence through the API. Spring Data JPA 4.0 will be based on JPA 3.2
Okay, thanks Christoph, I'll look out for SDJPA-4.0. Guess I was thrown by its inclusion in the API before it was actually supported. I can temporarily rework my application to route such queries to my existing custom repository implementation that does support Null Precedence in queries.
The org.springframework.data.domain.Sort.NullHandling API provides for NULLS_FIRST and NULLS_LAST but in practice anything other than NATIVE throws UsupportedOperationException at org.springframework.data.jpa.repository.query.QueryUtils.java line 757:
The text was updated successfully, but these errors were encountered: