issue with spring boot 4 / spring 7

#1

There's some issue with jpa repository custom methods returning single results:

java.lang.UnsupportedOperationException: null
    at com.objectdb.jpa.JpaQuery.getSingleResultOrNull(JpaQuery.java:816) ~[objectdb-jk-2.9.4_06.jar:na]
    at org.springframework.data.jpa.repository.query.JpaQueryExecution$SingleEntityExecution.doExecute(JpaQueryExecution.java:328) ~[spring-data-jpa-4.0.0.jar:4.0.0]

 

example method:

User findByName(String name);

#2

Build 2.9.4_06 switched to Jakarta Persistence 3.2, but this is still a work in progress, and an UnsupportedOperationException is thrown for methods that have not yet been implemented. Initial support for the new features of Jakarta Persistence 3.2 is expected in upcoming releases.

In particular, getSingleResultOrNull, which appears in your stack trace, is expected to be implemented in version 2.9.5.

ObjectDB Support

Reply