Skip to content
Snippets Groups Projects
Relation_entity.aod 8.45 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.1.0">
  <name>Relation_entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <titleProcess>%aditoprj%/entity/Relation_entity/titleProcess.js</titleProcess>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityIncomingField>
      <name>#INCOMING</name>
    </entityIncomingField>
    <entityField>
      <name>ADDRESS_ID</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Relation_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Relation_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>LANGUAGE</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>ORG_ID</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>PERS_ID</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>RELATIONID</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>STATUS</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Relation_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_NEW</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Relation_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>relationType</name>
      <description>Relation type. Value is based on the existance or non-existance of ORG_ID and PERS_ID.
See RelationUtils.getRelationTypeByPersOrg for possible values</description>
      <contentType>NUMBER</contentType>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Relation_entity/entityfields/relationtype/valueProcess.js</valueProcess>
    </entityField>
    <entityOutgoingField>
      <name>RelationPers_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Pers_entity</entityName>
        <fieldName>RelationPers_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RelationId_param</name>
          <code>%aditoprj%/entity/Relation_entity/entityfields/relationpers_dfo/children/relationid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityOutgoingField>
      <name>RelationOrg_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Org_entity</entityName>
        <fieldName>Org_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>relationId_param</name>
          <code>%aditoprj%/entity/Relation_entity/entityfields/relationorg_dfo/children/relationid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityIncomingField>
      <name>ProductRelation_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>ad58b5da-132a-46a8-abee-0671bfd2e006</name>
          <entityName>Product_entity</entityName>
          <fieldName>ProductRelation_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityField>
      <name>ORG_NAME</name>
      <title>Organisation name</title>
    </entityField>
    <entityField>
      <name>PERS_FIRSTNAME</name>
      <title>Firstname</title>
    </entityField>
    <entityField>
      <name>PERS_LASTNAME</name>
      <title>Lastname</title>
    </entityField>
    <entityIncomingField>
      <name>ContractRelation_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>c57332c1-19c2-466d-a59f-35f78ecb47af</name>
          <entityName>Contract_entity</entityName>
          <fieldName>ContractRelation_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityIncomingField>
      <name>OfferRelation_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>26d3e9ec-5a60-4108-b699-b8ba566f4832</name>
          <entityName>Offer_entity</entityName>
          <fieldName>OfferRelation_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <fromClauseProcess>%aditoprj%/entity/Relation_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <linkInformation>
        <linkInformation>
          <name>7b3fa460-44a1-40f3-89e3-1625ce9c6bb3</name>
          <tableName>RELATION</tableName>
          <primaryKey>RELATIONID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>6786a204-2cea-42ae-857d-4335bad6b5e4</name>
          <tableName>ORG</tableName>
          <primaryKey>ORGID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>d15ccb84-6928-4c44-b940-0f5d04826b55</name>
          <tableName>PERS</tableName>
          <primaryKey>PERSID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>b778622f-449a-4185-b7cb-9b373ba4024f</name>
          <tableName>ADDRESS</tableName>
          <primaryKey>ADDRESSID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ADDRESS_ID.value</name>
          <recordfield>RELATION.ADDRESS_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_EDIT.value</name>
          <recordfield>RELATION.DATE_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_NEW.value</name>
          <recordfield>RELATION.DATE_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LANGUAGE.value</name>
          <recordfield>RELATION.LANGUAGE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORG_ID.value</name>
          <recordfield>RELATION.ORG_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERS_ID.value</name>
          <recordfield>RELATION.PERS_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATIONID.value</name>
          <recordfield>RELATION.RELATIONID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STATUS.value</name>
          <recordfield>RELATION.STATUS</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_EDIT.value</name>
          <recordfield>RELATION.USER_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_NEW.value</name>
          <recordfield>RELATION.USER_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORG_NAME.value</name>
          <recordfield>ORG.NAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERS_FIRSTNAME.value</name>
          <recordfield>PERS.FIRSTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERS_LASTNAME.value</name>
          <recordfield>PERS.LASTNAME</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>