Class UUIDStringGenerator
java.lang.Object
org.springframework.data.neo4j.core.support.UUIDStringGenerator
- All Implemented Interfaces:
IdGenerator<String>
@API(status=STABLE,
since="6.0")
public final class UUIDStringGenerator
extends Object
implements IdGenerator<String>
A generator providing UUIDs.
- Since:
- 6.0
- Author:
- Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateId
(String primaryLabel, Object entity) Generates a new id for given entity.
-
Constructor Details
-
UUIDStringGenerator
public UUIDStringGenerator()
-
-
Method Details
-
generateId
Description copied from interface:IdGenerator
Generates a new id for given entity.- Specified by:
generateId
in interfaceIdGenerator<String>
entity
- the entity to be saved- Returns:
- id to be assigned to the entity
-