Class UUIDStringGenerator

java.lang.Object
org.springframework.data.neo4j.core.support.UUIDStringGenerator
All Implemented Interfaces:
IdGenerator<String>

@API(status=STABLE, since="6.0") public final class UUIDStringGenerator extends Object implements IdGenerator<String>
A generator providing UUIDs.
Since:
6.0
Author:
Michael J. Simons
  • Constructor Details

    • UUIDStringGenerator

      public UUIDStringGenerator()
  • Method Details

    • generateId

      public String generateId(String primaryLabel, Object entity)
      Description copied from interface: IdGenerator
      Generates a new id for given entity.
      Specified by:
      generateId in interface IdGenerator<String>
      entity - the entity to be saved
      Returns:
      id to be assigned to the entity