@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface DataType
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) {
}