spring-data-jpa
spring-data-jpa copied to clipboard
Make JpaSort.unsafe() operational for HQL, EQL, and JPQL.
To support testing various configurations, I also implemente @HideHibernate, @HideEclipseLink, and @HidePersistenceProviders so that test methods and test classes can verify these classpath checks.
Considering it's a bug fix and all the new code is package-private (or private), then all the HQL and JPQL parts should be a candidate for backporting, at least to all versions that have query parsing.
However, to do so would ALSO require backporting the PersistenceProvider.isPresent from #3170 (which I'm in favor of).