<?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.3.14" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.14">
  <name>Countries_Entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Countries_Entity/documentation.adoc</documentation>
  <title>Countries</title>
  <contentTitleProcess>%aditoprj%/entity/Countries_Entity/contentTitleProcess.js</contentTitleProcess>
  <iconId>VAADIN:FLAG</iconId>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
      <recordContainer>db</recordContainer>
    </entityProvider>
    <entityProvider>
      <name>ISO2Name</name>
      <dependencies>
        <entityDependency>
          <name>83e8a2e6-aa80-4b35-a0ad-8dad483ed428</name>
          <entityName>Address_entity</entityName>
          <fieldName>Countries</fieldName>
          <isConsumer v="false" />
        </entityDependency>
        <entityDependency>
          <name>8e8d1ace-3cbb-4ed7-b029-f486805605ef</name>
          <entityName>Organisation_entity</entityName>
          <fieldName>Countries</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
      <children>
        <entityParameter>
          <name>Key_param</name>
          <valueProcess>%aditoprj%/entity/Countries_Entity/entityfields/iso2name/children/key_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
        <entityParameter>
          <name>Value_param</name>
          <valueProcess>%aditoprj%/entity/Countries_Entity/entityfields/iso2name/children/value_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
      </children>
    </entityProvider>
    <entityParameter>
      <name>Key_param</name>
      <expose v="true" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityParameter>
      <name>Value_param</name>
      <expose v="true" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityField>
      <name>ISO2</name>
      <title>ISO 3166-1 alpha-2</title>
    </entityField>
    <entityField>
      <name>ISO3</name>
      <title>ISO 3166-1 alpha-3</title>
    </entityField>
    <entityField>
      <name>ADDR_FORMAT</name>
    </entityField>
    <entityField>
      <name>ZIP_REGEX</name>
      <documentation>%aditoprj%/entity/Countries_Entity/entityfields/zip_regex/documentation.adoc</documentation>
    </entityField>
    <entityField>
      <name>NAME</name>
    </entityField>
    <entityField>
      <name>REQUIRED_FIELDS</name>
      <documentation>%aditoprj%/entity/Countries_Entity/entityfields/required_fields/documentation.adoc</documentation>
    </entityField>
    <entityField>
      <name>NAME_TRANSLATED</name>
      <title>Latin Name</title>
      <valueProcess>%aditoprj%/entity/Countries_Entity/entityfields/name_translated/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>FLAG</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/Countries_Entity/entityfields/flag/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>FLAG_RAW</name>
      <description>//todo: move flags to binaries (asys_binaries)</description>
    </entityField>
    <entityField>
      <name>NAME_ORIGIN</name>
      <title>Native Name</title>
    </entityField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <isPageable v="false" />
      <orderClauseProcess>%aditoprj%/entity/Countries_Entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
      <cacheType>GLOBAL</cacheType>
      <cacheKeyProcess>%aditoprj%/entity/Countries_Entity/recordcontainers/db/cacheKeyProcess.js</cacheKeyProcess>
      <linkInformation>
        <linkInformation>
          <name>cc219004-43fd-4a3f-bee0-be5e732c61f1</name>
          <tableName>AB_COUNTRYINFO</tableName>
          <primaryKey>ISO2</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ADDR_FORMAT.value</name>
          <recordfield>AB_COUNTRYINFO.ADDR_FORMAT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>NAME_ORIGIN.value</name>
          <recordfield>AB_COUNTRYINFO.NAME_NATIVE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ISO2.value</name>
          <recordfield>AB_COUNTRYINFO.ISO2</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>REQUIRED_FIELDS.value</name>
          <recordfield>AB_COUNTRYINFO.REQUIRED_FIELDS</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ISO3.value</name>
          <recordfield>AB_COUNTRYINFO.ISO3</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ZIP_REGEX.value</name>
          <recordfield>AB_COUNTRYINFO.ZIP_REGEX</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>NAME.value</name>
          <recordfield>AB_COUNTRYINFO.NAME_LATIN</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>FLAG_RAW.value</name>
          <recordfield>AB_COUNTRYINFO.FLAG</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>