report-dal.xml 905 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<entities do-package="com.dianping.cat.consumer.dal" gen="true">
	<entity name="business-report" table="businessReport" alias="b">
		<member name="creation-date" insert-expr="NOW()" />
		<var name="start-date" value-type="Date" />
		<var name="end-date" value-type="Date" />
		<query-defs>
			<query name="find-all-by-period-productLine-name" type="SELECT" multiple="true">
				<param name="period" />
				<param name="product-line" />
				<statement><![CDATA[
					SELECT <FIELDS/> 
					FROM <TABLE/> 
					WHERE <FIELD name='period'/> = ${period}
					AND <FIELD name='product-line'/> = ${product-line}
					]]></statement>
			</query>
			<query name="insert" type="INSERT">
				<statement><![CDATA[
					INSERT 
					INTO <TABLE/>(<FIELDS/>) 
					VALUES(<VALUES/>)
				]]></statement>
			</query>
		</query-defs>
	</entity>
</entities>