An IIdentifierGenerator that returns a string of length 16.

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

Syntax

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

Type.createClass(
	'NHibernate.Id.UUIDStringGenerator',
	null,
	NHibernate.Id.IIdentifierGenerator);

Remarks

This id generation strategy is specified in the mapping file as

 Copy Code
<generator class="uuid.string" />

The identifier string will NOT consist of only alphanumeric characters. Use this only if you don't mind unreadable identifiers.

This impelementation was known to be incompatible with Postgres.

Inheritance Hierarchy

System..::.Object
  NHibernate.Id..::.UUIDStringGenerator

See Also