Top Description Constructors
org.hibernate

public Class NonUniqueResultException

extends HibernateException
Class Inheritance
Imports
org.hibernate.query.Query

Thrown when the application calls Query#getSingleResult() or Query#uniqueResult() and the query returns more than one row from the database. Unlike every other exception thrown by Hibernate, this one is recoverable!
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public
NonUniqueResultException(int
The number of actual results.
resultCount
)

Constructs a NonUniqueResultException.

Constructor Detail

NonUniqueResultExceptionback to summary
public NonUniqueResultException(int resultCount)

Constructs a NonUniqueResultException.

Parameters
resultCount:int

The number of actual results.