<?xml version="1.0" encoding="UTF-8"?>
<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="bank-payment" package="com.axelor.apps.bankpayment.db"/>

  	<entity name="BankPaymentBatch" lang="java">
  
	  	<!-- HEADER -->
	  	<string name="code" title="Code" namecolumn="true" unique="true"/>
	    <integer name="actionSelect" title="Action" required="true" selection="bank.payment.batch.action.select"/>
	    <many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" />
	  
	  	<!-- OTHERS INFORMATIONS -->
	  	<string name="description" title="Description" large="true" />
	    <one-to-many name="batchList" ref="com.axelor.apps.base.db.Batch" mappedBy="bankPaymentBatch" title="Batchs" />

	  	<many-to-one name="template" ref="com.axelor.apps.message.db.Template" title="Template"/>
	  	<integer name="daysNbr" title="Number of days to take into account to alert"/>

	  	<!-- BANK STATEMENT -->
		<many-to-many name="ebicsPartnerSet" title="Ebics partners" ref="com.axelor.apps.bankpayment.db.EbicsPartner"/>
		<many-to-many name="bankStatementFileFormatSet" title="Bank statement file formats" ref="com.axelor.apps.bankpayment.db.BankStatementFileFormat"/>
	  		
	  		
		<extra-code><![CDATA[
	
	   	// ACTION TYPE
		public static final int ACTION_EBICS_CERTIFICATE = 1;
		public static final int ACTION_BANK_STATEMENT = 2;
		
	]]></extra-code>
  	</entity>
</domain-models>