Package org.hibernate
Class NonUniqueResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.NonUniqueResultException
-
- All Implemented Interfaces:
java.io.Serializable
public class NonUniqueResultException extends HibernateException
Thrown when the application calls Query.uniqueResult() and the query returned more than one result. Unlike all other Hibernate exceptions, this one is recoverable!- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonUniqueResultException(int resultCount)
Constructs a NonUniqueResultException.
-