An IIdentifierGenerator that returns a Int64, constructed by counting from the maximum primary key value at startup. Not safe for use in a cluster!

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

Syntax

Visual Basic (Declaration)
Public Class IncrementGenerator _
	Implements IPersistentIdentifierGenerator, IIdentifierGenerator, IConfigurable
C#
public class IncrementGenerator : IPersistentIdentifierGenerator, 
	IIdentifierGenerator, IConfigurable
Visual C++
public ref class IncrementGenerator : IPersistentIdentifierGenerator, 
	IIdentifierGenerator, IConfigurable
JavaScript
NHibernate.Id.IncrementGenerator = function();

Type.createClass(
	'NHibernate.Id.IncrementGenerator',
	null,
	NHibernate.Id.IPersistentIdentifierGenerator,
	NHibernate.Id.IIdentifierGenerator,
	NHibernate.Id.IConfigurable);

Remarks

java author Gavin King, .NET port Mark Holden

Mapping parameters supported, but not usually needed: table, column.

Inheritance Hierarchy

System..::.Object
  NHibernate.Id..::.IncrementGenerator

See Also