@Retention(value=RUNTIME) @Target(value=FIELD) public @interface GeneratedValue
Id
annotation, otherwise it will be ignored.
Two strategies are provided UuidStrategy
and InternalIdStrategy
.
Custom strategies may be implemented using IdStrategy
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends IdStrategy> |
strategy
(Optional) The primary key generation strategy
that the persistence provider must use to
generate the annotated entity id.
|
public abstract Class<? extends IdStrategy> strategy
Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.