PrimaryKey annotation or using the ClassDescriptor API.
This configuration is also used to determine if a sequence number is
required.
PrimaryKey#validation(), ClassDescriptor#setIdValidation(IdValidation)
| Modifier and Type | Field and Description |
|---|---|
| public static final IdValidation | NEGATIVE
null, 0 and negative values are not allowed for ids extending Number and primitive int and long ids. |
| public static final IdValidation | NONE
No identifier validation is performed. |
| public static final IdValidation | NULL
Only null is invalid All other values are considered valid. |
| public static final IdValidation | ZERO
null and 0 are not allowed for primitive int and long ids. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IdValidation | |
| public static IdValidation[] |
| NEGATIVE | back to summary |
|---|---|
| public static final IdValidation NEGATIVE null, 0 and negative values are not allowed for ids extending Number and primitive int and long ids. | |
| NONE | back to summary |
|---|---|
| public static final IdValidation NONE No identifier validation is performed. | |
| NULL | back to summary |
|---|---|
| public static final IdValidation NULL Only null is invalid All other values are considered valid. This is the default configuration when composite identifiers are used and sequencing is not used. | |
| ZERO | back to summary |
|---|---|
| public static final IdValidation ZERO null and 0 are not allowed for primitive int and long ids. This is the default configuration for a simple identifier. | |
| IdValidation | back to summary |
|---|---|
| private IdValidation() | |
| valueOf | back to summary |
|---|---|
| public static IdValidation valueOf(String name) | |
| values | back to summary |
|---|---|
| public static IdValidation[] values() | |