Class RelationPropertyDescriptor

java.lang.Object
io.jmix.aitools.dataload.introspection.model.AbstractEntityPropertyDescriptor
io.jmix.aitools.dataload.introspection.model.RelationPropertyDescriptor
All Implemented Interfaces:
EntityPropertyDescriptor

public class RelationPropertyDescriptor extends AbstractEntityPropertyDescriptor
Descriptor of an association or composition (relation) entity property.
  • Field Details

    • mappedBy

      protected @Nullable String mappedBy
    • targetEntityName

      protected String targetEntityName
    • targetEntityLocalizedNames

      protected List<String> targetEntityLocalizedNames
    • optionalRelation

      protected @Nullable Boolean optionalRelation
    • cardinality

      protected String cardinality
  • Constructor Details

  • Method Details

    • getMappedBy

      public @Nullable String getMappedBy()
      Returns the name of the inverse property that owns this relation.
      Returns:
      mappedBy property name, or null if this side owns the relation
    • getTargetEntityName

      public String getTargetEntityName()
      Returns the name of the entity this relation points to.
      Returns:
      target entity name
    • getTargetEntityLocalizedNames

      public List<String> getTargetEntityLocalizedNames()
      Returns the captions of the target entity for the configured locales.
      Returns:
      localized target entity names
    • getOptionalRelation

      public @Nullable Boolean getOptionalRelation()
      Returns whether the relation is optional.
      Returns:
      false if the relation is required, or null if it is optional
    • getCardinality

      public String getCardinality()
      Returns the relation cardinality (for example "ONE_TO_MANY").
      Returns:
      cardinality name
    • fieldsToString

      protected String fieldsToString()
      Overrides:
      fieldsToString in class AbstractEntityPropertyDescriptor