
	
	<db-entity name="avz_t_circulation_category" schema="public">
		<db-attribute name="category_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="category_name" type="VARCHAR" isMandatory="true" length="64"/>
		<db-attribute name="create_date" type="DATE" length="4"/>
		<db-attribute name="note" type="VARCHAR"/>
		<db-attribute name="template" type="VARCHAR"/>
		<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_circulation_category_category_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_circulation_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="owner_id" type="INTEGER" length="4"/>
		<db-attribute name="request_id" type="INTEGER" 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_circulation_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_circulation_request" schema="public">
		<db-attribute name="category_id" type="INTEGER" length="4"/>
		<db-attribute name="create_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="limit_date" type="TIMESTAMP" length="8"/>
		<db-attribute name="note" type="VARCHAR"/>
		<db-attribute name="priority" type="SMALLINT" length="2"/>
		<db-attribute name="progress" type="VARCHAR" length="1"/>
		<db-attribute name="request_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="request_name" type="VARCHAR" length="64"/>
		<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_circulation_request_request_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="avz_t_circulation_request_map" schema="public">
		<db-attribute name="create_date" type="DATE" length="4"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
		<db-attribute name="note" type="VARCHAR"/>
		<db-attribute name="request_id" type="INTEGER" isMandatory="true" length="4"/>
		<db-attribute name="status" type="VARCHAR" length="1"/>
		<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_circulation_request_map_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>

	
	<obj-entity name="AvzTCirculationCategory" className="com.aimluck.eip.cayenne.om.portlet.AvzTCirculationCategory" dbEntityName="avz_t_circulation_category">
		<obj-attribute name="categoryName" type="java.lang.String" db-attribute-path="category_name"/>
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="note" type="java.lang.String" db-attribute-path="note"/>
		<obj-attribute name="template" type="java.lang.String" db-attribute-path="template"/>
		<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="AvzTCirculationFile" className="com.aimluck.eip.cayenne.om.portlet.AvzTCirculationFile" dbEntityName="avz_t_circulation_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="AvzTCirculationRequest" className="com.aimluck.eip.cayenne.om.portlet.AvzTCirculationRequest" dbEntityName="avz_t_circulation_request">
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="limitDate" type="java.util.Date" db-attribute-path="limit_date"/>
		<obj-attribute name="note" type="java.lang.String" db-attribute-path="note"/>
		<obj-attribute name="priority" type="java.lang.Short" db-attribute-path="priority"/>
		<obj-attribute name="progress" type="java.lang.String" db-attribute-path="progress"/>
		<obj-attribute name="requestName" type="java.lang.String" db-attribute-path="request_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="AvzTCirculationRequestMap" className="com.aimluck.eip.cayenne.om.portlet.AvzTCirculationRequestMap" dbEntityName="avz_t_circulation_request_map">
		<obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
		<obj-attribute name="note" type="java.lang.String" db-attribute-path="note"/>
		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
		<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>

	
	<db-relationship name="avzTCirculationRequestArray" source="avz_t_circulation_category" target="avz_t_circulation_request" toMany="true">
		<db-attribute-pair source="category_id" target="category_id"/>
	</db-relationship>
	<db-relationship name="toAvzTCirculationRequest" source="avz_t_circulation_file" target="avz_t_circulation_request" toMany="false">
		<db-attribute-pair source="request_id" target="request_id"/>
	</db-relationship>
	<db-relationship name="avzTCirculationFileArray" source="avz_t_circulation_request" target="avz_t_circulation_file" toMany="true">
		<db-attribute-pair source="request_id" target="request_id"/>
	</db-relationship>
	<db-relationship name="avzTCirculationRequestMapArray" source="avz_t_circulation_request" target="avz_t_circulation_request_map" toMany="true">
		<db-attribute-pair source="request_id" target="request_id"/>
	</db-relationship>
	<db-relationship name="toAvzTCirculationCategory" source="avz_t_circulation_request" target="avz_t_circulation_category" toMany="false">
		<db-attribute-pair source="category_id" target="category_id"/>
	</db-relationship>
	<db-relationship name="toAvzTCirculationRequest" source="avz_t_circulation_request_map" target="avz_t_circulation_request" toMany="false">
		<db-attribute-pair source="request_id" target="request_id"/>
	</db-relationship>


	<obj-relationship name="avzTCirculationRequestArray" source="AvzTCirculationCategory" target="AvzTCirculationRequest" db-relationship-path="avzTCirculationRequestArray"/>
	<obj-relationship name="toAvzTCirculationRequest" source="AvzTCirculationFile" target="AvzTCirculationRequest" db-relationship-path="toAvzTCirculationRequest"/>
	<obj-relationship name="avzTCirculationFileArray" source="AvzTCirculationRequest" target="AvzTCirculationFile" db-relationship-path="avzTCirculationFileArray"/>
	<obj-relationship name="avzTCirculationRequestMapArray" source="AvzTCirculationRequest" target="AvzTCirculationRequestMap" db-relationship-path="avzTCirculationRequestMapArray"/>
	<obj-relationship name="toAvzTCirculationCategory" source="AvzTCirculationRequest" target="AvzTCirculationCategory" db-relationship-path="toAvzTCirculationCategory"/>
	<obj-relationship name="toAvzTCirculationRequest" source="AvzTCirculationRequestMap" target="AvzTCirculationRequest" db-relationship-path="toAvzTCirculationRequest"/>
	
	