public interface IdentityService
IdentityGenerator
and inject it in the specified entity.IdentityGenerator
Modifier and Type | Method and Description |
---|---|
<E extends Entity<I>,I> |
identify(E entity)
Identifies the given entity.
|
<E extends Entity<I>,I> E identify(E entity) throws IdentityExistsException
E
- the entity type.I
- the entity key type.entity
- the entity to identify.IdentityExistsException
- if the entity already has an identity.Copyright © 2013-2018–2019 SeedStack. All rights reserved.