<?xml version="1.0" ?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

  <module name="base" package="com.axelor.apps.base.db"/>

  <entity name="ObjectDataConfig" cacheable="true">
    <![CDATA[
    This object store the configuration for export of data
    ]]>
    <string name="title" title="Title" />
    <string name="modelSelect" namecolumn="true" title="Model" selection="object.data.config.model.select" required="true"/>
    <integer name="statusSelect" title="Status" selection="object.data.config.status.select" />
    <one-to-many name="dataConfigLineList" ref="DataConfigLine"  title="Lines" mappedBy="objectDataConfig"/>
    <string name="comment" column="comment_val" title="Comment" large="true"/>
    
    <extra-code>
    	<![CDATA[
    	
	   	// STATUS SELECT
		public static final int STATUS_DRAFT = 1;
		public static final int STATUS_VALIDATED = 2;
		public static final int STATUS_CANCELLED = 3;
		
    	]]>
    </extra-code>
  </entity>

</domain-models>
