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.- Since:
- 6.0
- Author:
- Michael J. Simons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateId(String primaryLabel, Object entity) Generates a new id for given entity.
-
Constructor Details
-
InternalIdGenerator
public InternalIdGenerator()
-
-
Method Details
-
generateId
Description copied from interface:IdGeneratorGenerates a new id for given entity.- Specified by:
generateIdin interfaceIdGenerator<Void>- Parameters:
primaryLabel- the primary label under which the entity is registeredentity- the entity to be saved- Returns:
- id to be assigned to the entity
-