An IIdentifierGenerator that combines a hi/lo algorithm with an underlying oracle-style sequence that generates hi values.

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

Syntax

C#
public class SequenceHiLoGenerator : SequenceGenerator
Visual Basic
Public Class SequenceHiLoGenerator _
	Inherits SequenceGenerator
Visual C++
public ref class SequenceHiLoGenerator : public SequenceGenerator

Remarks

This id generation strategy is specified in the mapping file as

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

The sequence parameter is required, the max_lo and schema are optional.

The user may specify a max_lo value to determine how often new hi values are fetched. If sequences are not avaliable, TableHiLoGenerator might be an alternative.

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..SequenceGenerator
    NHibernate.Id..::..SequenceHiLoGenerator

See Also