ilscipio/scipio-erp

View on GitHub
framework/webtools/entitydef/entitymodel_scipio.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
    <!-- ========================================================= -->
    <!-- ======================== Defaults ======================= -->
    <!-- ========================================================= -->
    <title>Webtools Entity Model</title>
    <description>None</description>
    <version>1.0</version>

    <entity entity-name="EntityExport" package-name="com.ilscipio.scipio.webtools.entity"
        title="Entity Export" author="Ilscipio GmbH" version="1.0">
      <field name="exportId" type="id-ne"></field>
      <field name="fileData" type="byte-array"></field>
      <!-- 2018-09-04: TODO: REMOVE: This field is using a reserved database name ("FILE"), so fileData has
          been created instead. We will give a grace period for users to notice the warnings,
          but later this has to be removed (no backward-compatible workaround is possible at that time). 
          In the future, if you need to retrieve old records, you can uncomment this field again. -->
      <field name="file" type="byte-array"></field>
      <field name="fileSize" type="numeric"></field>
      <field name="description" type="very-long"></field>
      <field name="createdBy" type="id"></field>
      <field name="lastUpdatedBy" type="id"></field>
      <prim-key field="exportId" />
    </entity>
    
</entitymodel>