An IIdentifierGenerator that returns a string of length
16.
Namespace:
NHibernate.IdAssembly: 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
![]() | |
---|---|
<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.