public interface EntityImportViewBuilderAPI
EntityImportView
based on the JSON object that represents an entity.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
EntityImportView |
buildFromJson(java.lang.String json,
MetaClass metaClass)
Builds an
EntityImportView that contains all fields that are presented in the JSON object. |
static final java.lang.String NAME
EntityImportView buildFromJson(java.lang.String json, MetaClass metaClass)
EntityImportView
that contains all fields that are presented in the JSON object.
All references will be added to the view as a ReferenceImportBehaviour.ERROR_ON_MISSING
behavior. All references that have a @Composition annotation will be added to the view with a property that has a
EntityImportViewProperty
. This means that compositions will be
persisted during the import. Absent collection items will be removed from the database.
For many-to-many association items corresponding entities will be searched in the database. If any of them is missing, an error will be thrown. Absent collection members will be excluded from the many-to-many association.
json
- a string that represents a JSON objectmetaClass
- a MetaClass of the entity