This exception is thrown when an operation would break session-scoped identity. This occurs if the user tries to associate two different instances of the same class with a particular identifier, in the scope of a single ISession.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
[SerializableAttribute]
public class NonUniqueObjectException : HibernateException
Visual Basic
<SerializableAttribute> _
Public Class NonUniqueObjectException _
	Inherits HibernateException
Visual C++
[SerializableAttribute]
public ref class NonUniqueObjectException : public HibernateException

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    System..::..ApplicationException
      NHibernate..::..HibernateException
        NHibernate..::..NonUniqueObjectException

See Also