	<db-entity name="avz_t_intramail" schema="public">
		<db-attribute name="body" type="VARCHAR"/>
		<db-attribute name="create_date" type="DATE" length="4"/>
		<db-attribute name="disabled" type="CHAR" length="1"/>
		<db-attribute name="intramail_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="mail_volume" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="owner_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="send_flg" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="subject" type="VARCHAR" length="128"/>
		<db-attribute name="update_date" type="TIMESTAMP" length="8"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_intramail_intramail_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_intramail_file" schema="public">
		<db-attribute name="create_date" type="DATE" length="4"/>
		<db-attribute name="file_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="file_name" type="VARCHAR" isMandatory="true" length="128"/>
		<db-attribute name="file_path" type="VARCHAR" isMandatory="true"/>
		<db-attribute name="file_thumbnail" type="LONGVARBINARY"/>
		<db-attribute name="intramail_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="owner_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="update_date" type="TIMESTAMP" length="8"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_intramail_file_file_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_intramail_map" schema="public">
		<db-attribute name="create_date" type="DATE" length="4"/>
		<db-attribute name="disabled" type="CHAR" length="1"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="intramail_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="read_flg" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="transmission_cls" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="update_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="user_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="view_flg" type="CHAR" isMandatory="true" length="1"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>avz_t_intramail_map_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<obj-entity name="AvzTIntramail" className="com.aimluck.eip.cayenne.om.portlet.AvzTIntramail" dbEntityName="avz_t_intramail">
		<obj-attribute name="body" type="java.lang.String" db-attribute-path="body"/>
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="disabled" type="java.lang.String" db-attribute-path="disabled"/>
		<obj-attribute name="mailVolume" type="java.lang.Integer" db-attribute-path="mail_volume"/>
		<obj-attribute name="ownerId" type="java.lang.Integer" db-attribute-path="owner_id"/>
		<obj-attribute name="sendFlg" type="java.lang.String" db-attribute-path="send_flg"/>
		<obj-attribute name="subject" type="java.lang.String" db-attribute-path="subject"/>
		<obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
	</obj-entity>
	<obj-entity name="AvzTIntramailFile" className="com.aimluck.eip.cayenne.om.portlet.AvzTIntramailFile" dbEntityName="avz_t_intramail_file">
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="fileName" type="java.lang.String" db-attribute-path="file_name"/>
		<obj-attribute name="filePath" type="java.lang.String" db-attribute-path="file_path"/>
		<obj-attribute name="fileThumbnail" type="byte[]" db-attribute-path="file_thumbnail"/>
		<obj-attribute name="ownerId" type="java.lang.Integer" db-attribute-path="owner_id"/>
		<obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
	</obj-entity>
	<obj-entity name="AvzTIntramailMap" className="com.aimluck.eip.cayenne.om.portlet.AvzTIntramailMap" dbEntityName="avz_t_intramail_map">
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="disabled" type="java.lang.String" db-attribute-path="disabled"/>
		<obj-attribute name="readFlg" type="java.lang.String" db-attribute-path="read_flg"/>
		<obj-attribute name="transmissionCls" type="java.lang.String" db-attribute-path="transmission_cls"/>
		<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-attribute name="viewFlg" type="java.lang.String" db-attribute-path="view_flg"/>
	</obj-entity>
	<db-relationship name="avzTIntramailFileArray" source="avz_t_intramail" target="avz_t_intramail_file" toMany="true">
		<db-attribute-pair source="intramail_id" target="intramail_id"/>
	</db-relationship>
	<db-relationship name="avzTIntramailMapArray" source="avz_t_intramail" target="avz_t_intramail_map" toMany="true">
		<db-attribute-pair source="intramail_id" target="intramail_id"/>
	</db-relationship>
	<db-relationship name="toAvzTIntramail" source="avz_t_intramail_file" target="avz_t_intramail" toMany="false">
		<db-attribute-pair source="intramail_id" target="intramail_id"/>
	</db-relationship>
	<db-relationship name="toAvzTIntramail" source="avz_t_intramail_map" target="avz_t_intramail" toMany="false">
		<db-attribute-pair source="intramail_id" target="intramail_id"/>
	</db-relationship>
	<obj-relationship name="avzTIntramailFileArray" source="AvzTIntramail" target="AvzTIntramailFile" db-relationship-path="avzTIntramailFileArray"/>
	<obj-relationship name="avzTIntramailMapArray" source="AvzTIntramail" target="AvzTIntramailMap" db-relationship-path="avzTIntramailMapArray"/>
	<obj-relationship name="toAvzTIntramail" source="AvzTIntramailFile" target="AvzTIntramail" db-relationship-path="toAvzTIntramail"/>
	<obj-relationship name="toAvzTIntramail" source="AvzTIntramailMap" target="AvzTIntramail" db-relationship-path="toAvzTIntramail"/>