
	<db-entity name="avz_t_enquete" schema="public">
		<db-attribute name="comment" type="VARCHAR"/>
		<db-attribute name="create_date" type="TIMESTAMP"/>
		<db-attribute name="creater_id" type="INTEGER"/>
		<db-attribute name="deadline_date" type="TIMESTAMP"/>
		<db-attribute name="deadline_method" type="VARCHAR" length="1"/>
		<db-attribute name="enquete_id" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="item_num" type="INTEGER"/>
		<db-attribute name="item_num_status" type="VARCHAR" length="1"/>
		<db-attribute name="name" type="VARCHAR" length="99"/>
		<db-attribute name="public_date" type="TIMESTAMP"/>
		<db-attribute name="public_method" type="VARCHAR" length="1"/>
		<db-attribute name="public_status" type="VARCHAR" length="1"/>
		<db-attribute name="update_date" type="TIMESTAMP"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_enquete_enquete_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_enquete_choice_item" schema="public">
		<db-attribute name="answer_id" type="INTEGER"/>
		<db-attribute name="choice_item_id" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="choice_item_number" type="INTEGER"/>
		<db-attribute name="choice_item_title" type="VARCHAR" length="99"/>
		<db-attribute name="enquete_id" type="INTEGER"/>
		<db-attribute name="item_id" type="INTEGER"/>
		<db-attribute name="item_number" type="INTEGER"/>
		<db-attribute name="response_status" type="VARCHAR" length="1"/>
		<db-attribute name="status" type="VARCHAR" length="1"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_enquete_choice_item_choice_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_enquete_item" schema="public">
		<db-attribute name="choice_item_num" type="INTEGER"/>
		<db-attribute name="choice_item_num_status" type="VARCHAR" length="1"/>
		<db-attribute name="enquete_id" type="INTEGER"/>
		<db-attribute name="item_id" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="item_number" type="INTEGER"/>
		<db-attribute name="item_title" type="VARCHAR" length="99"/>
		<db-attribute name="status" type="VARCHAR" length="1"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_enquete_item_item_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>

	<obj-entity name="AvzTEnquete" className="com.aimluck.eip.cayenne.om.portlet.AvzTEnquete" dbEntityName="avz_t_enquete">
		<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="createrId" type="java.lang.Integer" db-attribute-path="creater_id"/>
		<obj-attribute name="deadlineDate" type="java.util.Date" db-attribute-path="deadline_date"/>
		<obj-attribute name="deadlineMethod" type="java.lang.String" db-attribute-path="deadline_method"/>
		<obj-attribute name="itemNum" type="java.lang.Integer" db-attribute-path="item_num"/>
		<obj-attribute name="itemNumStatus" type="java.lang.String" db-attribute-path="item_num_status"/>
		<obj-attribute name="name" type="java.lang.String" db-attribute-path="name"/>
		<obj-attribute name="publicDate" type="java.util.Date" db-attribute-path="public_date"/>
		<obj-attribute name="publicMethod" type="java.lang.String" db-attribute-path="public_method"/>
		<obj-attribute name="publicStatus" type="java.lang.String" db-attribute-path="public_status"/>
		<obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
	</obj-entity>
	<obj-entity name="AvzTEnqueteChoiceItem" className="com.aimluck.eip.cayenne.om.portlet.AvzTEnqueteChoiceItem" dbEntityName="avz_t_enquete_choice_item">
		<obj-attribute name="answerId" type="java.lang.Integer" db-attribute-path="answer_id"/>
		<obj-attribute name="choiceItemNumber" type="java.lang.Integer" db-attribute-path="choice_item_number"/>
		<obj-attribute name="choiceItemTitle" type="java.lang.String" db-attribute-path="choice_item_title"/>
		<obj-attribute name="enqueteId" type="java.lang.Integer" db-attribute-path="enquete_id"/>
		<obj-attribute name="itemId" type="java.lang.Integer" db-attribute-path="item_id"/>
		<obj-attribute name="itemNumber" type="java.lang.Integer" db-attribute-path="item_number"/>
		<obj-attribute name="responseStatus" type="java.lang.String" db-attribute-path="response_status"/>
		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
	</obj-entity>
	<obj-entity name="AvzTEnqueteItem" className="com.aimluck.eip.cayenne.om.portlet.AvzTEnqueteItem" dbEntityName="avz_t_enquete_item">
		<obj-attribute name="choiceItemNum" type="java.lang.Integer" db-attribute-path="choice_item_num"/>
		<obj-attribute name="choiceItemNumStatus" type="java.lang.String" db-attribute-path="choice_item_num_status"/>
		<obj-attribute name="enqueteId" type="java.lang.Integer" db-attribute-path="enquete_id"/>
		<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="status" type="java.lang.String" db-attribute-path="status"/>
	</obj-entity>

	<db-relationship name="avzTEnqueteChoiceItem" source="avz_t_enquete" target="avz_t_enquete_choice_item" toMany="true">
		<db-attribute-pair source="enquete_id" target="enquete_id"/>
	</db-relationship>
	<db-relationship name="avzTEnqueteItem" source="avz_t_enquete" target="avz_t_enquete_item" toMany="true">
		<db-attribute-pair source="enquete_id" target="enquete_id"/>
	</db-relationship>
	<db-relationship name="avzTEnquete" source="avz_t_enquete_choice_item" target="avz_t_enquete" toMany="false">
		<db-attribute-pair source="enquete_id" target="enquete_id"/>
	</db-relationship>
	<db-relationship name="avzTEnqueteItem" source="avz_t_enquete_choice_item" target="avz_t_enquete_item" toMany="false">
		<db-attribute-pair source="item_id" target="item_id"/>
	</db-relationship>
	<db-relationship name="avzTEnquete" source="avz_t_enquete_item" target="avz_t_enquete" toMany="false">
		<db-attribute-pair source="enquete_id" target="enquete_id"/>
	</db-relationship>
	<db-relationship name="avzTEnqueteChoiceItem" source="avz_t_enquete_item" target="avz_t_enquete_choice_item" toMany="true">
		<db-attribute-pair source="item_id" target="item_id"/>
	</db-relationship>

	<obj-relationship name="avzTEnqueteChoiceItem" source="AvzTEnquete" target="AvzTEnqueteChoiceItem" db-relationship-path="avzTEnqueteChoiceItem"/>
	<obj-relationship name="avzTEnqueteItem" source="AvzTEnquete" target="AvzTEnqueteItem" db-relationship-path="avzTEnqueteItem"/>
	<obj-relationship name="avzTEnquete" source="AvzTEnqueteChoiceItem" target="AvzTEnquete" db-relationship-path="avzTEnquete"/>
	<obj-relationship name="avzTEnqueteItem" source="AvzTEnqueteChoiceItem" target="AvzTEnqueteItem" db-relationship-path="avzTEnqueteItem"/>
	<obj-relationship name="avzTEnquete" source="AvzTEnqueteItem" target="AvzTEnquete" db-relationship-path="avzTEnquete"/>
	<obj-relationship name="avzTEnqueteChoiceItem" source="AvzTEnqueteItem" target="AvzTEnqueteChoiceItem" db-relationship-path="avzTEnqueteChoiceItem"/>
	