Class InternalIdStrategy

java.lang.Object
org.neo4j.ogm.id.InternalIdStrategy
All Implemented Interfaces:
IdStrategy

public class InternalIdStrategy extends Object implements IdStrategy
This strategy will use internally generated Long ids as entity ids
Since:
3.0
Author:
Frantisek Hartman
  • Constructor Details

    • InternalIdStrategy

      public InternalIdStrategy()
  • Method Details

    • generateId

      public Object generateId(Object entity)
      Description copied from interface: IdStrategy
      Generates new id for given entity
      Specified by:
      generateId in interface IdStrategy
      Parameters:
      entity - saved entity
      Returns:
      identifier of the entity