Skip to content
Snippets Groups Projects
Product_entity.aod 13.27 KiB
<?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.0.5" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.0.5">
  <name>Product_entity</name>
  <title>Product</title>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Product_entity/documentation.adoc</documentation>
  <recordContainerType>DB</recordContainerType>
  <iconId>VAADIN:HAMMER</iconId>
  <alias>Data_alias</alias>
  <orderClauseProcess>%aditoprj%/entity/Product_entity/orderClauseProcess.js</orderClauseProcess>
  <onDBDelete>%aditoprj%/entity/Product_entity/onDBDelete.js</onDBDelete>
  <jDitoRecordAlias>Data_alias</jDitoRecordAlias>
  <recordContainer>db</recordContainer>
  <linkInformation>
    <linkInformation>
      <name>43c30a2b-7b59-46a2-9d8f-57ce4cde5d36</name>
      <tableName>PRODUCT</tableName>
      <primaryKey>PRODUCTID</primaryKey>
      <isUIDTable v="true" />
    </linkInformation>
  </linkInformation>
  <entityFields>
    <entityField>
      <name>ADVERTISING</name>
      <title>Advertising material</title>
      <tableName>PRODUCT</tableName>
      <columnName>ADVERTISING</columnName>
      <contentType>BOOLEAN</contentType>
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/possibleItemsProcess.js</possibleItemsProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <tableName>PRODUCT</tableName>
      <columnName>DATE_EDIT</columnName>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <tableName>PRODUCT</tableName>
      <columnName>DATE_NEW</columnName>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>GROUPCODEID</name>
      <title>Product group</title>
      <tableName>PRODUCT</tableName>
      <columnName>GROUPCODEID</columnName>
      <mandatory v="true" />
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/groupcodeid/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>MINSTOCK</name>
      <title>Min. stock</title>
      <tableName>PRODUCT</tableName>
      <columnName>MINSTOCK</columnName>
      <contentType>NUMBER</contentType>
      <outputFormat>#,##0.##</outputFormat>
    </entityField>
    <entityField>
      <name>ORG_ID</name>
      <title>Developer</title>
      <tableName>PRODUCT</tableName>
      <columnName>ORG_ID</columnName>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/org_id/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>PRODUCTCODE</name>
      <documentation>%aditoprj%/entity/Product_entity/entityfields/productcode/documentation.adoc</documentation>
      <title>Product number</title>
      <tableName>PRODUCT</tableName>
      <columnName>PRODUCTCODE</columnName>
      <mandatory v="true" />
      <onValidation>%aditoprj%/entity/Product_entity/entityfields/productcode/onValidation.js</onValidation>
    </entityField>
    <entityField>
      <name>PRODUCTID</name>
      <tableName>PRODUCT</tableName>
      <columnName>PRODUCTID</columnName>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/productid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>PRODUCTNAME</name>
      <title>Product name</title>
      <tableName>PRODUCT</tableName>
      <columnName>PRODUCTNAME</columnName>
      <mandatory v="true" />
    </entityField>
    <entityField>
      <name>STANDARD</name>
      <tableName>PRODUCT</tableName>
      <columnName>STANDARD</columnName>
    </entityField>
    <entityField>
      <name>STATUS</name>
      <title>Active</title>
      <tableName>PRODUCT</tableName>
      <columnName>STATUS</columnName>
      <contentType>BOOLEAN</contentType>
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/status/possibleItemsProcess.js</possibleItemsProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/status/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>UNIT</name>
      <title>Unit</title>
      <tableName>PRODUCT</tableName>
      <columnName>UNIT</columnName>
      <mandatory v="true" />
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/unit/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <tableName>PRODUCT</tableName>
      <columnName>USER_EDIT</columnName>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_NEW</name>
      <tableName>PRODUCT</tableName>
      <columnName>USER_NEW</columnName>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentPurchasePriceId</name>
      <title>Curr. purchase price</title>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentpurchasepriceid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentSalesPriceId</name>
      <title>Curr. sales price</title>
      <contentType>NUMBER</contentType>
      <outputFormat>#,##0.00 €</outputFormat>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentsalespriceid/valueProcess.js</valueProcess>
    </entityField>
    <entityOutgoingField>
      <name>ProductOrg_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Org_entity</entityName>
        <fieldName>Org_dfi</fieldName>
      </dependency>
    </entityOutgoingField>
    <entityIncomingField>
      <name>OrgProduct_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>49cbec11-7d2e-4898-b63f-2e36aac9181e</name>
          <entityName>Org_entity</entityName>
          <fieldName>OrgProduct_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityParameter>
      <name>OrgId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityOutgoingField>
      <name>ProductProductprice_dfo</name>
      <title>Price list</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Productprice_entity</entityName>
        <fieldName>ProductProductprice_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productproductprice_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityIncomingField>
      <name>Product_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>15dd9e6b-f551-452f-adce-53d7031ed468</name>
          <entityName>Productprice_entity</entityName>
          <fieldName>ProductpriceProduct_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityOutgoingField>
      <name>ProductStock_dfo</name>
      <title>Stock</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <selectionMode>SINGLE</selectionMode>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>ProductStock_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productstock_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityField>
      <name>IMAGE</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/image/valueProcess.js</valueProcess>
    </entityField>
    <entityOutgoingField>
      <name>ProductStockCount_dfo</name>
      <title>Stock</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <state>READONLY</state>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>ProductStock_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productstockcount_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityOutgoingField>
      <name>ProductProductpriceCurr_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Productprice_entity</entityName>
        <fieldName>ProductProductprice_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productproductpricecurr_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityIncomingField>
      <name>#INCOMING</name>
    </entityIncomingField>
    <entityOutgoingField>
      <name>ProductProd2prod_dfo</name>
      <title>Parts list</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Prod2prod_entity</entityName>
        <fieldName>Prod2prodProduct_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productprod2prod_dfo/children/productid_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
          <mandatory v="true" />
        </entityParameter>
      </children>
    </entityOutgoingField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <maximumDbRows v="0" />
      <onDBDelete>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>c1012dc4-2126-433f-aacd-ce8f25e96f42</name>
          <tableName>PRODUCT</tableName>
          <primaryKey>PRODUCTID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ADVERTISING.value</name>
          <value>PRODUCT.ADVERTISING</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_EDIT.value</name>
          <value>PRODUCT.DATE_EDIT</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_NEW.value</name>
          <value>PRODUCT.DATE_NEW</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>GROUPCODEID.value</name>
          <value>PRODUCT.GROUPCODEID</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>MINSTOCK.value</name>
          <value>PRODUCT.MINSTOCK</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORG_ID.value</name>
          <value>PRODUCT.ORG_ID</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTCODE.value</name>
          <value>PRODUCT.PRODUCTCODE</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTID.value</name>
          <value>PRODUCT.PRODUCTID</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTNAME.value</name>
          <value>PRODUCT.PRODUCTNAME</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STANDARD.value</name>
          <value>PRODUCT.STANDARD</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STATUS.value</name>
          <value>PRODUCT.STATUS</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>UNIT.value</name>
          <value>PRODUCT.UNIT</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_EDIT.value</name>
          <value>PRODUCT.USER_EDIT</value>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_NEW.value</name>
          <value>PRODUCT.USER_NEW</value>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>