org.qi4j.spi.uuid

## Class UuidIdentityGeneratorMixin

- java.lang.Object
- - org.qi4j.spi.uuid.UuidIdentityGeneratorMixin

- All Implemented Interfaces:
    IdentityGenerator

      public class UuidIdentityGeneratorMixin
      extends Object
      implements IdentityGenerator

  UUID based Identity generator mixin.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `uuid`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UuidIdentityGeneratorMixin()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `generate(Class<?> compositeType)` Generate a new id for the given Composite type

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### uuid

          protected String uuid

  - ### Constructor Detail

    - #### UuidIdentityGeneratorMixin

          public UuidIdentityGeneratorMixin()

  - ### Method Detail

    - #### generate

          public String generate(Class<?> compositeType)

      Description copied from interface: `IdentityGenerator`
      Generate a new id for the given Composite type
      Specified by:
        `generate` in interface `IdentityGenerator`
      Parameters:
        `compositeType` - the type of composite
      Returns:
        a new identity