public static final class GeneratedValue.UUIDGenerator extends Object implements IdGenerator<UUID>
UUID is annotated with
@Id and @GeneratedValue.| Constructor and Description |
|---|
UUIDGenerator() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
generateId(String primaryLabel,
Object entity)
Generates a new id for given entity.
|
public UUID generateId(String primaryLabel, Object entity)
IdGeneratorgenerateId in interface IdGenerator<UUID>entity - the entity to be savedCopyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.