Files
spring-data-demo/data-jpa-3-to-4/output/03-single-result-boot4.txt
T

5 lines
264 B
Plaintext

# Spring Boot 4.2.0
em.createQuery(...).getSingleResult() on no rows -> throws jakarta.persistence.NoResultException
No result found for query [select b from Book b where b.isbn = 'nope']
jakarta.persistence.TypedQuery declares getSingleResultOrNull() -> true