Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
5 lines
264 B
Plaintext
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
|