@Target(value={TYPE,FIELD}) @Retention(value=RUNTIME) public @interface UUIDAny
GeneratedValue
annotation. A UUIDAny generator may be specified on the entity
class or on the primary key field or property. The scope of the
generator name is global to the persistence unit (across all
generator types).
Example: @UUIDAny(name="uuid_100", length=100)
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
(Required) A unique generator name that can be referenced by one or more
classes to be the generator for primary key values.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
length
The length of the UUID
|
public abstract String name
Copyright © 2022. All rights reserved.