| <?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.
|
| -->
|
|
|
| <!-- $Rev: 602704 $ $Date: 2007-12-09 19:58:22 +0200 (Sun, 09 Dec 2007) $ -->
|
|
|
| <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0"> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.BasicCmpBean"> |
| <attributes> |
| <id name="primaryKey"/> |
| <basic name="firstName"/> |
| <basic name="lastName"/> |
| <transient name="nextId"/> |
| <transient name="ejbContext"/> |
| <transient name="allowedOperationsTable"/> |
| </attributes> |
| </mapped-superclass> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.ComplexCmpBean"> |
| <id-class class="org.apache.openejb.test.entity.cmp.ComplexCmpBeanPk"/> |
| <attributes> |
| <id name="firstName"/> |
| <id name="lastName"/> |
| <transient name="ejbContext"/> |
| <transient name="allowedOperationsTable"/> |
| </attributes> |
| </mapped-superclass> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.UnknownCmpBean"> |
| <attributes> |
| <basic name="firstName"/> |
| <basic name="lastName"/> |
| <transient name="ejbContext"/> |
| <transient name="allowedOperationsTable"/> |
| </attributes> |
| </mapped-superclass> |
| <entity class="org.apache.openejb.core.cmp.jpa.BasicCmpBean_Subclass"> |
| <table name="BasicCmpBean"/> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="firstName"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="lastName"/> |
| </attribute-override> |
| </entity> |
| <entity class="org.apache.openejb.core.cmp.jpa.ComplexCmpBean_Subclass"> |
| <table name="ComplexCmpBean"/> |
| <attribute-override name="firstName"> |
| <column name="firstName"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="lastName"/> |
| </attribute-override> |
| </entity> |
| <entity class="org.apache.openejb.core.cmp.jpa.UnknownCmpBean_Subclass"> |
| <table name="UnknownCmpBean"/> |
| <attribute-override name="firstName"> |
| <column name="firstName"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="lastName"/> |
| </attribute-override> |
| <attributes> |
| <id name="OpenEJB_pk"> |
| <generated-value strategy="AUTO"/> |
| </id> |
| </attributes> |
| </entity> |
| |
| <entity name="Book" class="org.apache.openejb.core.cmp.jpa.BookBean"> |
| <attributes> |
| <id name="title"/> |
| <many-to-many name="authors"> |
| <cascade> |
| <cascade-all/> |
| </cascade> |
| </many-to-many> |
| </attributes> |
| </entity> |
| <entity name="Author" class="org.apache.openejb.core.cmp.jpa.AuthorBean"> |
| <attributes> |
| <id name="name"/> |
| <many-to-many name="books" mapped-by="authors"/> |
| </attributes> |
| </entity> |
| </entity-mappings> |
| |