程序包 org.hibernate

类 NonUniqueResultException

  • 所有已实现的接口:
    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!
    作者:
    Gavin King
    另请参阅:
    序列化表格
    • 构造器详细资料

      • NonUniqueResultException

        public NonUniqueResultException​(int resultCount)
        Constructs a NonUniqueResultException.
        参数:
        resultCount - The number of actual results.