Hibernate 5.6.9.Final resolves this issue, removing the need for the workaround.

Related: https://github.com/spring-projects/spring-data-jpa/issues/2519, https://github.com/spring-projects/spring-data-jpa/issues/2583
This commit is contained in:
Greg L. Turnquist
2022-09-29 12:13:52 -05:00
parent 3c7e6e11d2
commit e2b388e6b9

View File

@@ -52,13 +52,13 @@ public interface PersonRepository extends Repository<Person, Long> {
* @param firstname * @param firstname
* @return * @return
*/ */
Seq<Person> findByFirstnameContaining(@Param("firstname") String firstname); Seq<Person> findByFirstnameContaining(String firstname);
/** /**
* Returning a {@link Try} is supported out of the box with all exceptions being handled by {@link Try} immediately. * Returning a {@link Try} is supported out of the box with all exceptions being handled by {@link Try} immediately.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
Try<Option<Person>> findByLastnameContaining(@Param("lastname") String lastname); Try<Option<Person>> findByLastnameContaining(String lastname);
} }