Class GeneratedValue.InternalIdGenerator

java.lang.Object
org.springframework.data.neo4j.core.schema.GeneratedValue.InternalIdGenerator
All Implemented Interfaces:
IdGenerator<Void>
Enclosing class:
GeneratedValue

public static final class GeneratedValue.InternalIdGenerator extends Object implements IdGenerator<Void>
This IdGenerator does nothing. It is used for relying on the internal, database-side created id.
  • Constructor Details

    • InternalIdGenerator

      public InternalIdGenerator()
  • Method Details

    • generateId

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