Skip to content

Commit

Permalink
Make JpaSort.unsafe operational.
Browse files Browse the repository at this point in the history
We have offered this method as a way for people to customize an ORDER BY clause beyond a simple property name. For example, someone could use "LENGTH(firstname)" as a function to order by the length of each row's lastname instead of ordering by the lastname itself.

By using the relevant parser and applying a different visitor, this commit make operational a feature that shows little evidence of ever having worked.

See #3172.
  • Loading branch information
gregturn committed Oct 4, 2023
1 parent 26533a1 commit 03d2ffb
Show file tree
Hide file tree
Showing 5 changed files with 887 additions and 4 deletions.
13 changes: 11 additions & 2 deletions spring-data-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,17 @@
<xmlConfigured>aop.xml</xmlConfigured>
</configuration>
</plugin>

</plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<compilerArgs>--enable-preview</compilerArgs>
</configuration>
</plugin>

</plugins>
</build>

</project>

0 comments on commit 03d2ffb

Please sign in to comment.