<?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="marketing" package="com.axelor.apps.base.db"/>

  <entity name="Querie" lang="java">
  
  	<string name="name" title="Name" required="true" namecolumn="true"/>
	<integer name="type" title="Type" required="true" default="0"/>
	<string name="query" title="Query" required="true" large="true" multiline="true"/>
	
	<many-to-one name="metaModel" ref="com.axelor.meta.db.MetaModel" title="Model"/>
	
	<extra-code><![CDATA[
	
	   	// TYPE	
		public static final int TYPE_SQL = 1;
        public static final int TYPE_JPQL = 2;
        public static final int TYPE_FILTER = 3;

	]]></extra-code>
  
  </entity>

 
</domain-models>