The general contract between a class that generates unique identifiers and the ISession.

Namespace:  NHibernate.Id
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Interface IIdentifierGenerator
C#
public interface IIdentifierGenerator
Visual C++
public interface class IIdentifierGenerator
JavaScript
NHibernate.Id.IIdentifierGenerator = function();
NHibernate.Id.IIdentifierGenerator.createInterface('NHibernate.Id.IIdentifierGenerator');

Remarks

It is not intended that this interface ever be exposed to the application. It is intended that users implement this interface to provide custom identifier generation strategies.

Implementors should provide a public default constructor.

Implementations that accept configuration parameters should also implement IConfigurable.

Implementors must be threadsafe.

See Also