Modifier and Type | Required Element and Description |
---|---|
String |
fieldName
Represents the field name for this field.
|
AdminPresentation |
fieldPresentation
Represents the metadata for this field.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
manyToField
Optional - if the value is not primitive and contains a bi-directional reference back to the entity containing
this map structure, you can declare the field name in the value class for this reference.
|
Class<?> |
targetClass
Optional - if the Map structure is using generics, then the system can usually infer the concrete
type for the Map value.
|
public abstract String fieldName
Represents the field name for this field.
public abstract AdminPresentation fieldPresentation
Represents the metadata for this field. The AdminPresentation properties will be used by the system to determine how this field should be treated in the admin tool (e.g. date fields get a date picker in the UI)
public abstract Class<?> targetClass
Optional - if the Map structure is using generics, then the system can usually infer the concrete type for the Map value. However, if not using generics for the Map, or if the value cannot be clearly inferred, you can explicitly set the Map structure value type here. Map fields can only understand maps whose values are basic types (String, Long, Date, etc...). Complex types require additional support. Support is provided out-of-the-box for complex types ValueAssignable, and SimpleRule.
public abstract String manyToField
Optional - if the value is not primitive and contains a bi-directional reference back to the entity containing this map structure, you can declare the field name in the value class for this reference. Note, if the map uses the JPA mappedBy property, the system will try to infer the manyToField value so you don't have to set it here.
Copyright © 2022. All rights reserved.