Annotation Interface DataType


@Target(TYPE) @Retention(RUNTIME) public @interface DataType
Indicates a data type (aka domain class).

The data type is the user defined type that wraps a basic value. It can be mapped to a database column.

This annotation is applied for only record types.

 @DataType
 public record PhoneNumber(String value) {
 }