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

5 lines
266 B
Plaintext

# Spring Boot 3.5.16
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() -> false