META-INF.spring-orm-oracle.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of syncope-core-persistence-jpa Show documentation
Show all versions of syncope-core-persistence-jpa Show documentation
Apache Syncope Core Persistence JPA
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" version="2.0"> <persistence-unit-metadata> <persistence-unit-defaults> <entity-listeners> <entity-listener class="org.apache.syncope.core.persistence.jpa.validation.entity.EntityValidationListener"> <pre-persist method-name="validate"/> <pre-update method-name="validate"/> </entity-listener> </entity-listeners> </persistence-unit-defaults> </persistence-unit-metadata> <entity class="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"> <attributes> <many-to-one name="userOwner" target-entity="org.apache.syncope.core.persistence.jpa.entity.user.JPAUser"/> <many-to-one name="groupOwner" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"/> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.group.JPATypeExtension"> <attributes> <many-to-one name="group" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"/> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.user.JPAUMembership"> <attributes> <many-to-one name="leftEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.user.JPAUser"> <join-column name="user_id"/> </many-to-one> <many-to-one name="rightEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"> <join-column name="group_id"/> </many-to-one> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.user.JPAUDynGroupMembership"> <attributes> <one-to-one name="group" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"/> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.user.JPAURelationship"> <attributes> <many-to-one name="leftEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.user.JPAUser"> <join-column name="user_id"/> </many-to-one> <many-to-one name="rightEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject"> <join-column name="anyObject_id"/> </many-to-one> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAMembership"> <attributes> <many-to-one name="leftEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject"> <join-column name="anyObject_id"/> </many-to-one> <many-to-one name="rightEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"> <join-column name="group_id"/> </many-to-one> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAADynGroupMembership"> <attributes> <one-to-one name="group" target-entity="org.apache.syncope.core.persistence.jpa.entity.group.JPAGroup"/> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAARelationship"> <attributes> <many-to-one name="leftEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject"> <join-column name="left_anyObject_id"/> </many-to-one> <many-to-one name="rightEnd" target-entity="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject"> <join-column name="right_anyObject_id"/> </many-to-one> </attributes> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAPlainAttrUniqueValue"> <table> <unique-constraint> <column-name>booleanValue</column-name> <column-name>dateValue</column-name> <column-name>stringValue</column-name> <column-name>doubleValue</column-name> <column-name>longValue</column-name> <column-name>schema_id</column-name> </unique-constraint> </table> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.user.JPAUPlainAttrUniqueValue"> <table> <unique-constraint> <column-name>booleanValue</column-name> <column-name>dateValue</column-name> <column-name>stringValue</column-name> <column-name>doubleValue</column-name> <column-name>longValue</column-name> <column-name>schema_id</column-name> </unique-constraint> </table> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.group.JPAGPlainAttrUniqueValue"> <table> <unique-constraint> <column-name>booleanValue</column-name> <column-name>dateValue</column-name> <column-name>stringValue</column-name> <column-name>doubleValue</column-name> <column-name>longValue</column-name> <column-name>schema_id</column-name> </unique-constraint> </table> </entity> <entity class="org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrUniqueValue"> <table> <unique-constraint> <column-name>booleanValue</column-name> <column-name>dateValue</column-name> <column-name>stringValue</column-name> <column-name>doubleValue</column-name> <column-name>longValue</column-name> <column-name>schema_id</column-name> </unique-constraint> </table> </entity> </entity-mappings>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy