Value object based on a single string.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDescription of the type.Unique name of the type to generate. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionExample value of the type.booleanGenerate a JAXB adapter.booleanGenerate a JPA converter.booleanGenerate a JSONB adapter.intSets the maximum length of the type (>=0).intSets the minimum length of the type (>=0).booleanGenerate a Eclipse Microprofile OpenAPI annotations.A pattern that describes the content of the type.Name of the package for the type to generate.longSerial version UID to use.
-
Element Details
-
-
pkg
String pkgName of the package for the type to generate. If this value is not set, the package of the annotated type will be used.- Returns:
- Package name.
- Default:
- ""
-
jpa
boolean jpaGenerate a JPA converter.- Returns:
- TRUE generates a converter.
- Default:
- false
-
jaxb
boolean jaxbGenerate a JAXB adapter.- Returns:
- TRUE generates an adapter.
- Default:
- false
-
jsonb
boolean jsonbGenerate a JSONB adapter.- Returns:
- TRUE generates an adapter.
- Default:
- false
-
openapi
boolean openapiGenerate a Eclipse Microprofile OpenAPI annotations.- Returns:
- TRUE generates annotations.
- Default:
- false
-
maxLength
int maxLengthSets the maximum length of the type (>=0).- Returns:
- Maximum length.
- Default:
- 2147483647
-
minLength
int minLengthSets the minimum length of the type (>=0).- Returns:
- Minimum length.
- Default:
- 0
-
pattern
String patternA pattern that describes the content of the type.- Returns:
- Regular expression.
- Default:
- ""
-
example
String exampleExample value of the type.- Returns:
- Example value.
- Default:
- ""
-
serialVersionUID
long serialVersionUIDSerial version UID to use.- Returns:
- Version used for Java serialization.
- Default:
- 1L
-