An IIdentifierGenerator that generates Int64 values using an oracle-style sequence. A higher performance algorithm is SequenceHiLoGenerator.

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

Syntax

C#
public class SequenceGenerator : IPersistentIdentifierGenerator, 
	IIdentifierGenerator, IConfigurable
Visual Basic
Public Class SequenceGenerator _
	Implements IPersistentIdentifierGenerator, IIdentifierGenerator, IConfigurable
Visual C++
public ref class SequenceGenerator : IPersistentIdentifierGenerator, 
	IIdentifierGenerator, IConfigurable

Remarks

This id generation strategy is specified in the mapping file as

CopyC#
<generator class="sequence">
    <param name="sequence">uid_sequence</param>
    <param name="schema">db_schema</param>
</generator>

The sequence parameter is required while the schema is optional.

Inheritance Hierarchy

See Also