About NonUniqueResultException
javax.persistence.NonUniqueResultException
Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult() is executed on a query and there is more than one result from the query.(Exception of JPA)
Running JPA Queries
Explains how to use JPA to run Java Persistence Query Language (JPQL) queries.... with the name 'Canada' (e.g. due to a bug) a NonUniqueResultException javax.persistence.NonUniqueResultException JPA exception Thrown by the persistence ...
JPA Exceptions
Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException.... javax.persistence.NonUniqueResultException ... or during query execution: javax.persistence.NonUniqueResultException javax.persistence.NoResultException ...
NonUniqueResultException()
Constructs a new NonUniqueResultException exception with null as its detail message.(Constructor of javax.persistence.NonUniqueResultException)
NonUniqueResultException(message)
Constructs a new NonUniqueResultException exception with the specified detail message.(Constructor of javax.persistence.NonUniqueResultException)
javax.persistence.PersistenceException
Thrown by the persistence provider when a problem occurs.(Exception of JPA)
javax.persistence.TypedQuery
Interface used to control the execution of typed queries.(Interface of JPA)
getSingleResult()
Execute a SELECT query that returns a single untyped result.(Method of javax.persistence.Query)
getSingleResult()
Execute a SELECT query that returns a single result.(Method of javax.persistence.TypedQuery)