@Random public class RandomUuidGenerator extends Object implements UuidGenerator
UUID
by using UUID.randomUUID()
.Constructor and Description |
---|
RandomUuidGenerator() |
Modifier and Type | Method and Description |
---|---|
<E extends Entity<UUID>> |
generate(Class<E> entityClass)
Generate a new identifier for an entity of the specified class.
|
public <E extends Entity<UUID>> UUID generate(Class<E> entityClass)
IdentityGenerator
generate
in interface IdentityGenerator<UUID>
E
- the entity type.entityClass
- the entity class to generate an identity for.Copyright © 2013-2018–2019 SeedStack. All rights reserved.