Module spring.data.neo4j
Class GeneratedValue.UUIDGenerator
java.lang.Object
org.springframework.data.neo4j.core.schema.GeneratedValue.UUIDGenerator
- All Implemented Interfaces:
IdGenerator<UUID>
- Enclosing class:
- GeneratedValue
This generator is automatically applied when a field of type
UUID is annotated with
@Id and @GeneratedValue.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateId(String primaryLabel, Object entity) Generates a new id for given entity.
-
Constructor Details
-
UUIDGenerator
public UUIDGenerator()
-
-
Method Details
-
generateId
Description copied from interface:IdGeneratorGenerates a new id for given entity.- Specified by:
generateIdin interfaceIdGenerator<UUID>entity- the entity to be saved- Returns:
- id to be assigned to the entity
-