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
-
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:IdGenerator
Generates a new id for given entity.- Specified by:
generateId
in interfaceIdGenerator<UUID>
entity
- the entity to be saved- Returns:
- id to be assigned to the entity
-