	<db-entity name="avz_t_lunch_order" schema="public">
		<db-attribute name="comment" type="VARCHAR"/>
		<db-attribute name="create_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="deadline_date" type="INTEGER" length="4"/>
		<db-attribute name="min_num" type="INTEGER" length="4"/>
		<db-attribute name="min_plice" type="INTEGER" length="4"/>
		<db-attribute name="min_status" type="VARCHAR"/>
		<db-attribute name="order_map_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="store_name" type="VARCHAR" isMandatory="true"/>
		<db-attribute name="update_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="user_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_lunch_order_order_map_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_lunch_order_item" schema="public">
		<db-attribute name="comment" type="VARCHAR" length="99"/>
		<db-attribute name="item_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="item_number" type="INTEGER" length="4"/>
		<db-attribute name="item_title" type="VARCHAR" isMandatory="true" length="99"/>
		<db-attribute name="min_order_flag" type="INTEGER" length="4"/>
		<db-attribute name="order_map_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="price" type="INTEGER" isMandatory="true" length="4"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_lunch_order_item_item_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_lunch_user_order" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="item_id" type="INTEGER" length="4"/>
		<db-attribute name="order_amount" type="INTEGER" length="4"/>
		<db-attribute name="order_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="user_id" type="INTEGER" length="4"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_lunch_user_order_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	
	<obj-entity name="AvzTLunchOrder" className="com.aimluck.eip.cayenne.om.portlet.AvzTLunchOrder" dbEntityName="avz_t_lunch_order">
		<obj-attribute name="comment" type="java.lang.String" db-attribute-path="comment"/>
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="deadlineDate" type="java.lang.Integer" db-attribute-path="deadline_date"/>
		<obj-attribute name="minNum" type="java.lang.Integer" db-attribute-path="min_num"/>
		<obj-attribute name="minPlice" type="java.lang.Integer" db-attribute-path="min_plice"/>
		<obj-attribute name="minStatus" type="java.lang.String" db-attribute-path="min_status"/>
		<obj-attribute name="storeName" type="java.lang.String" db-attribute-path="store_name"/>
		<obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
		<obj-attribute name="userId" type="java.lang.Integer" db-attribute-path="user_id"/>
	</obj-entity>
	<obj-entity name="AvzTLunchOrderItem" className="com.aimluck.eip.cayenne.om.portlet.AvzTLunchOrderItem" dbEntityName="avz_t_lunch_order_item">
		<obj-attribute name="comment" type="java.lang.String" db-attribute-path="comment"/>
		<obj-attribute name="itemNumber" type="java.lang.Integer" db-attribute-path="item_number"/>
		<obj-attribute name="itemTitle" type="java.lang.String" db-attribute-path="item_title"/>
		<obj-attribute name="minOrderFlag" type="java.lang.Integer" db-attribute-path="min_order_flag"/>
		<obj-attribute name="orderMapId" type="java.lang.Integer" db-attribute-path="order_map_id"/>
		<obj-attribute name="price" type="java.lang.Integer" db-attribute-path="price"/>
	</obj-entity>
	<obj-entity name="AvzTLunchUserOrder" className="com.aimluck.eip.cayenne.om.portlet.AvzTLunchUserOrder" dbEntityName="avz_t_lunch_user_order">
		<obj-attribute name="itemId" type="java.lang.Integer" db-attribute-path="item_id"/>
		<obj-attribute name="orderAmount" type="java.lang.Integer" db-attribute-path="order_amount"/>
		<obj-attribute name="orderDate" type="java.util.Date" db-attribute-path="order_date"/>
		<obj-attribute name="userId" type="java.lang.Integer" db-attribute-path="user_id"/>
	</obj-entity>
	
	<db-relationship name="avzTLunchOrderItemArray" source="avz_t_lunch_order" target="avz_t_lunch_order_item" toMany="true">
		<db-attribute-pair source="order_map_id" target="order_map_id"/>
	</db-relationship>
	<db-relationship name="avzTLunchUserOrderArray" source="avz_t_lunch_order_item" target="avz_t_lunch_user_order" toMany="true">
		<db-attribute-pair source="item_id" target="item_id"/>
	</db-relationship>
	<db-relationship name="toAvzTLunchOrder" source="avz_t_lunch_order_item" target="avz_t_lunch_order" toMany="false">
		<db-attribute-pair source="order_map_id" target="order_map_id"/>
	</db-relationship>
	<db-relationship name="toAvzTLunchOrderItem" source="avz_t_lunch_user_order" target="avz_t_lunch_order_item" toMany="false">
		<db-attribute-pair source="item_id" target="item_id"/>
	</db-relationship>
	
	<obj-relationship name="avzTLunchOrderItemArray" source="AvzTLunchOrder" target="AvzTLunchOrderItem" db-relationship-path="avzTLunchOrderItemArray"/>
	<obj-relationship name="avzTLunchUserOrderArray" source="AvzTLunchOrderItem" target="AvzTLunchUserOrder" db-relationship-path="avzTLunchUserOrderArray"/>
	<obj-relationship name="toAvzTLunchOrder" source="AvzTLunchOrderItem" target="AvzTLunchOrder" db-relationship-path="toAvzTLunchOrder"/>
	<obj-relationship name="toAvzTLunchOrderItem" source="AvzTLunchUserOrder" target="AvzTLunchOrderItem" db-relationship-path="toAvzTLunchOrderItem"/>

