  <db-entity name="avz_t_cabinet_file" schema="public">
    <db-attribute name="create_date" type="DATE" length="4"/>
    <db-attribute name="create_user_id" type="INTEGER" 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_size" type="BIGINT" length="8"/>
    <db-attribute name="file_title" type="VARCHAR" isMandatory="true" length="128"/>
    <db-attribute name="folder_id" type="BIGINT" isMandatory="true" length="8"/>
    <db-attribute name="note" type="VARCHAR"/>
    <db-attribute name="update_date" type="TIMESTAMP" length="8"/>
    <db-attribute name="update_user_id" type="INTEGER" length="4"/>
    <db-key-generator>
      <db-generator-type>ORACLE</db-generator-type>
      <db-generator-name>avz_t_cabinet_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_cabinet_folder" schema="public">
    <db-attribute name="create_date" type="DATE" length="4"/>
    <db-attribute name="create_user_id" type="INTEGER" length="4"/>
    <db-attribute name="folder_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
    <db-attribute name="folder_name" type="VARCHAR" isMandatory="true" length="128"/>
    <db-attribute name="note" type="VARCHAR"/>
    <db-attribute name="parent_id" type="INTEGER" isMandatory="true" length="4"/>
    <db-attribute name="update_date" type="TIMESTAMP" length="8"/>
    <db-attribute name="update_user_id" type="INTEGER" length="4"/>
    <db-key-generator>
      <db-generator-type>ORACLE</db-generator-type>
      <db-generator-name>avz_t_cabinet_folder_folder_id_seq</db-generator-name>
      <db-key-cache-size>1</db-key-cache-size>
    </db-key-generator>
  </db-entity>
  <db-entity name="avz_t_file_acl" schema="public">
    <db-attribute name="acl_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
    <db-attribute name="acl_type" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="create_date" type="DATE" length="4"/>
    <db-attribute name="file_id" type="INTEGER" isMandatory="true" length="4"/>
    <db-attribute name="grant_flg" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="target_id" type="VARCHAR" isMandatory="true" length="99"/>
    <db-attribute name="target_type" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="update_date" type="TIMESTAMP" length="8"/>
    <db-key-generator>
      <db-generator-type>ORACLE</db-generator-type>
      <db-generator-name>avz_t_file_acl_acl_id_seq</db-generator-name>
      <db-key-cache-size>1</db-key-cache-size>
    </db-key-generator>
  </db-entity>
  <db-entity name="avz_t_folder_acl" schema="public">
    <db-attribute name="acl_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
    <db-attribute name="acl_type" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="create_date" type="DATE" length="4"/>
    <db-attribute name="folder_id" type="INTEGER" isMandatory="true" length="4"/>
    <db-attribute name="grant_flg" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="target_id" type="VARCHAR" isMandatory="true" length="99"/>
    <db-attribute name="target_type" type="CHAR" isMandatory="true" length="1"/>
    <db-attribute name="update_date" type="TIMESTAMP" length="8"/>
    <db-key-generator>
      <db-generator-type>ORACLE</db-generator-type>
      <db-generator-name>avz_t_folder_acl_acl_id_seq</db-generator-name>
      <db-key-cache-size>1</db-key-cache-size>
    </db-key-generator>
  </db-entity>
  <obj-entity name="AvzTCabinetFile" className="com.aimluck.eip.cayenne.om.portlet.AvzTCabinetFile" dbEntityName="avz_t_cabinet_file">
    <obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
    <obj-attribute name="createUserId" type="java.lang.Integer" db-attribute-path="create_user_id"/>
    <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="fileSize" type="java.lang.Long" db-attribute-path="file_size"/>
    <obj-attribute name="fileTitle" type="java.lang.String" db-attribute-path="file_title"/>
    <obj-attribute name="folderId" type="java.lang.Integer" db-attribute-path="folder_id"/>
    <obj-attribute name="note" type="java.lang.String" db-attribute-path="note"/>
    <obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
    <obj-attribute name="updateUserId" type="java.lang.Integer" db-attribute-path="update_user_id"/>
  </obj-entity>
  <obj-entity name="AvzTCabinetFolder" className="com.aimluck.eip.cayenne.om.portlet.AvzTCabinetFolder" dbEntityName="avz_t_cabinet_folder">
    <obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
    <obj-attribute name="createUserId" type="java.lang.Integer" db-attribute-path="create_user_id"/>
    <obj-attribute name="folderName" type="java.lang.String" db-attribute-path="folder_name"/>
    <obj-attribute name="note" type="java.lang.String" db-attribute-path="note"/>
    <obj-attribute name="parentId" type="java.lang.Integer" db-attribute-path="parent_id"/>
    <obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
    <obj-attribute name="updateUserId" type="java.lang.Integer" db-attribute-path="update_user_id"/>
  </obj-entity>
  <obj-entity name="AvzTFileAcl" className="com.aimluck.eip.cayenne.om.portlet.AvzTFileAcl" dbEntityName="avz_t_file_acl">
    <obj-attribute name="aclType" type="java.lang.String" db-attribute-path="acl_type"/>
    <obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
    <obj-attribute name="fileId" type="java.lang.Integer" db-attribute-path="file_id"/>
    <obj-attribute name="grantFlg" type="java.lang.String" db-attribute-path="grant_flg"/>
    <obj-attribute name="targetId" type="java.lang.String" db-attribute-path="target_id"/>
    <obj-attribute name="targetType" type="java.lang.String" db-attribute-path="target_type"/>
    <obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
  </obj-entity>
  <obj-entity name="AvzTFolderAcl" className="com.aimluck.eip.cayenne.om.portlet.AvzTFolderAcl" dbEntityName="avz_t_folder_acl">
    <obj-attribute name="aclType" type="java.lang.String" db-attribute-path="acl_type"/>
    <obj-attribute name="createDate" type="java.util.Date" db-attribute-path="create_date"/>
    <obj-attribute name="folderId" type="java.lang.Integer" db-attribute-path="folder_id"/>
    <obj-attribute name="grantFlg" type="java.lang.String" db-attribute-path="grant_flg"/>
    <obj-attribute name="targetId" type="java.lang.String" db-attribute-path="target_id"/>
    <obj-attribute name="targetType" type="java.lang.String" db-attribute-path="target_type"/>
    <obj-attribute name="updateDate" type="java.util.Date" db-attribute-path="update_date"/>
  </obj-entity>
  <db-relationship name="avzTFileAclArray" source="avz_t_cabinet_file" target="avz_t_file_acl" toMany="true">
    <db-attribute-pair source="file_id" target="file_id"/>
  </db-relationship>
  <db-relationship name="toAvzTCabinetFolder" source="avz_t_cabinet_file" target="avz_t_cabinet_folder" toMany="false">
    <db-attribute-pair source="folder_id" target="folder_id"/>
  </db-relationship>
  <db-relationship name="avzTCabinetFileArray" source="avz_t_cabinet_folder" target="avz_t_cabinet_file" toMany="true">
    <db-attribute-pair source="folder_id" target="folder_id"/>
  </db-relationship>
  <db-relationship name="avzTFolderAclArray" source="avz_t_cabinet_folder" target="avz_t_folder_acl" toMany="true">
    <db-attribute-pair source="folder_id" target="folder_id"/>
  </db-relationship>
  <db-relationship name="toAvzTCabinetFile" source="avz_t_file_acl" target="avz_t_cabinet_file" toMany="false">
    <db-attribute-pair source="file_id" target="file_id"/>
  </db-relationship>
  <db-relationship name="toAvzTCabinetFolder" source="avz_t_folder_acl" target="avz_t_cabinet_folder" toMany="false">
    <db-attribute-pair source="folder_id" target="folder_id"/>
  </db-relationship>
  <obj-relationship name="avzTFileAclArray" source="AvzTCabinetFile" target="AvzTFileAcl" db-relationship-path="avzTFileAclArray"/>
  <obj-relationship name="toAvzTCabinetFolder" source="AvzTCabinetFile" target="AvzTCabinetFolder" db-relationship-path="toAvzTCabinetFolder"/>
  <obj-relationship name="avzTCabinetFileArray" source="AvzTCabinetFolder" target="AvzTCabinetFile" db-relationship-path="avzTCabinetFileArray"/>
  <obj-relationship name="avzTFolderAclArray" source="AvzTCabinetFolder" target="AvzTFolderAcl" db-relationship-path="avzTFolderAclArray"/>
  <obj-relationship name="toAvzTCabinetFile" source="AvzTFileAcl" target="AvzTCabinetFile" db-relationship-path="toAvzTCabinetFile"/>
  <obj-relationship name="toAvzTCabinetFolder" source="AvzTFolderAcl" target="AvzTCabinetFolder" db-relationship-path="toAvzTCabinetFolder"/>
