Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
- project-version="3.0.0.1">
- <property name="defaultLockType" value="optimistic"/>
- <property name="defaultPackage" value="com.logstorage.nextui.db.orm"/>
- <db-entity name="ELEMENT">
- <db-attribute name="DESCRIPTION" type="VARCHAR" isMandatory="true" length="300"/>
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="NAME" type="VARCHAR" isMandatory="true" length="300"/>
- <db-attribute name="TYPE" type="VARCHAR" isMandatory="true" length="30"/>
- </db-entity>
- <db-entity name="ELEMENT_PERMISSION">
- <db-attribute name="ELEMENT_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="PERMISSION_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- </db-entity>
- <db-entity name="ELEMENT_TAG">
- <db-attribute name="ELEMENT_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="TAG_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- </db-entity>
- <db-entity name="FILE">
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="PATH" type="VARCHAR" isMandatory="true" length="300"/>
- </db-entity>
- <db-entity name="PERMISSION">
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="VALUE" type="VARCHAR" length="300"/>
- </db-entity>
- <db-entity name="PRINCIPAL">
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="PASSWORD" type="VARCHAR" isMandatory="true" length="256"/>
- </db-entity>
- <db-entity name="PRINCIPAL_PERMISSION">
- <db-attribute name="PERMISSION_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="PRINCIPAL_ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- </db-entity>
- <db-entity name="TAG">
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- </db-entity>
- <obj-entity name="Element" className="com.logstorage.nextui.db.orm.Element" lock-type="optimistic" dbEntityName="ELEMENT">
- <obj-attribute name="description" type="java.lang.String" db-attribute-path="DESCRIPTION"/>
- <obj-attribute name="name" type="java.lang.String" db-attribute-path="NAME"/>
- <obj-attribute name="type" type="java.lang.String" db-attribute-path="TYPE"/>
- <obj-attribute name="uid" type="long" db-attribute-path="ID"/>
- </obj-entity>
- <obj-entity name="File" superEntityName="Element" className="com.logstorage.nextui.db.orm.File" lock-type="optimistic" dbEntityName="ELEMENT">
- <qualifier><![CDATA[type = "FILE"]]></qualifier>
- <obj-attribute name="path" type="java.lang.String" db-attribute-path="asFile.PATH"/>
- </obj-entity>
- <obj-entity name="Permission" superEntityName="Element" className="com.logstorage.nextui.db.orm.Permission" lock-type="optimistic" dbEntityName="ELEMENT">
- <qualifier><![CDATA[type = "PERMISSION"]]></qualifier>
- <obj-attribute name="value" type="java.lang.String" db-attribute-path="asPermission.VALUE"/>
- </obj-entity>
- <obj-entity name="Principal" superEntityName="Element" className="com.logstorage.nextui.db.orm.Principal" lock-type="optimistic" dbEntityName="ELEMENT">
- <qualifier><![CDATA[type = "PRINCIPAL"]]></qualifier>
- <obj-attribute name="password" type="java.lang.String" db-attribute-path="asPrincipal.PASSWORD"/>
- </obj-entity>
- <obj-entity name="Tag" superEntityName="Element" className="com.logstorage.nextui.db.orm.Tag" lock-type="optimistic" dbEntityName="ELEMENT">
- <qualifier><![CDATA[type = "TAG"]]></qualifier>
- </obj-entity>
- <db-relationship name="asFile" source="ELEMENT" target="FILE" toDependentPK="true" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asPermission" source="ELEMENT" target="PERMISSION" toDependentPK="true" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asPrincipal" source="ELEMENT" target="PRINCIPAL" toDependentPK="true" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asTag" source="ELEMENT" target="TAG" toDependentPK="true" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="toElementPermission" source="ELEMENT" target="ELEMENT_PERMISSION" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="ELEMENT_ID"/>
- </db-relationship>
- <db-relationship name="toElementTag" source="ELEMENT" target="ELEMENT_TAG" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="ELEMENT_ID"/>
- </db-relationship>
- <db-relationship name="element" source="ELEMENT_PERMISSION" target="ELEMENT" toMany="true">
- <db-attribute-pair source="ELEMENT_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="permission" source="ELEMENT_PERMISSION" target="PERMISSION" toMany="true">
- <db-attribute-pair source="PERMISSION_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="element" source="ELEMENT_TAG" target="ELEMENT" toMany="true">
- <db-attribute-pair source="ELEMENT_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="tag" source="ELEMENT_TAG" target="TAG" toMany="true">
- <db-attribute-pair source="TAG_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asElement" source="FILE" target="ELEMENT" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asElement" source="PERMISSION" target="ELEMENT" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="toElementPermission" source="PERMISSION" target="ELEMENT_PERMISSION" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="PERMISSION_ID"/>
- </db-relationship>
- <db-relationship name="toPrincipalPermission" source="PERMISSION" target="PRINCIPAL_PERMISSION" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="PERMISSION_ID"/>
- </db-relationship>
- <db-relationship name="asElement" source="PRINCIPAL" target="ELEMENT" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="toPrincipalPermission" source="PRINCIPAL" target="PRINCIPAL_PERMISSION" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="PRINCIPAL_ID"/>
- </db-relationship>
- <db-relationship name="permission" source="PRINCIPAL_PERMISSION" target="PERMISSION" toMany="true">
- <db-attribute-pair source="PERMISSION_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="principal" source="PRINCIPAL_PERMISSION" target="PRINCIPAL" toMany="true">
- <db-attribute-pair source="PRINCIPAL_ID" target="ID"/>
- </db-relationship>
- <db-relationship name="asElement" source="TAG" target="ELEMENT" toMany="false">
- <db-attribute-pair source="ID" target="ID"/>
- </db-relationship>
- <db-relationship name="toElementTag" source="TAG" target="ELEMENT_TAG" toDependentPK="true" toMany="true">
- <db-attribute-pair source="ID" target="TAG_ID"/>
- </db-relationship>
- <obj-relationship name="requiredPermissions" source="Element" target="Permission" deleteRule="Deny" db-relationship-path="toElementPermission.permission.asElement"/>
- <obj-relationship name="tags" source="Element" target="Tag" deleteRule="Deny" db-relationship-path="toElementTag.tag.asElement"/>
- <obj-relationship name="elements" source="Permission" target="Element" deleteRule="Deny" db-relationship-path="toElementPermission.element"/>
- <obj-relationship name="elements" source="Tag" target="Element" deleteRule="Deny" db-relationship-path="toElementTag.element"/>
- </data-map>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement