| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| <!-- |
| 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: 710022 $ $Date: 2008-11-03 10:40:14 +0200 (Mon, 03 Nov 2008) $ --> |
| |
| <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.AllowedOperationsCmpBean"> |
| <attributes> |
| <id name="primaryKey"/> |
| <basic name="firstName"/> |
| <basic name="lastName"/> |
| <transient name="nextId"/> |
| <transient name="number"/> |
| <transient name="ejbContext"/> |
| <transient name="allowedOperationsTable"/> |
| </attributes> |
| </mapped-superclass> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.EncCmpBean"> |
| <attributes> |
| <id name="primaryKey"/> |
| <basic name="firstName"/> |
| <basic name="lastName"/> |
| <transient name="nextId"/> |
| <transient name="ejbContext"/> |
| </attributes> |
| </mapped-superclass> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.RmiIiopCmpBean"> |
| <attributes> |
| <id name="primaryKey"/> |
| <basic name="firstName"/> |
| <basic name="lastName"/> |
| <transient name="nextId"/> |
| <transient name="ejbContext"/> |
| </attributes> |
| </mapped-superclass> |
| <mapped-superclass class="org.apache.openejb.test.entity.cmp.BasicCmp2PojoBean"> |
| <attributes> |
| <basic name="firstName"/> |
| <transient name="nextId"/> |
| <transient name="ejbContext"/> |
| <transient name="allowedOperationsTable"/> |
| </attributes> |
| </mapped-superclass> |
| <entity name="BasicCmpBean" class="openejb.org.apache.openejb.test.entity.cmp.BasicCmpBean"> |
| <description>TestModule#BasicCmpBean</description> |
| <table name="entity"/> |
| <named-query name="BasicCmpBean.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM BasicCmpBean AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <named-query name="BasicCmpBean.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM BasicCmpBean AS o WHERE 1 = 0</query> |
| </named-query> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="last_name"/> |
| </attribute-override> |
| </entity> |
| <entity name="BasicCmpBeanExplicitPK" class="openejb.org.apache.openejb.test.entity.cmp.BasicCmpBeanExplicitPK"> |
| <description>TestModule#BasicCmpBeanExplicitPK</description> |
| <table name="entity_explicit_pk"/> |
| <named-query name="BasicCmpBeanExplicitPK.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM BasicCmpBeanExplicitPK AS o WHERE 1 = 0</query> |
| </named-query> |
| <named-query name="BasicCmpBeanExplicitPK.findByPrimaryKey(java.lang.Integer)"> |
| <query>SELECT OBJECT(o) FROM BasicCmpBeanExplicitPK AS o</query> |
| </named-query> |
| <named-query name="BasicCmpBeanExplicitPK.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM BasicCmpBeanExplicitPK AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="last_name"/> |
| </attribute-override> |
| </entity> |
| <entity name="AOBasicCmpBean" class="openejb.org.apache.openejb.test.entity.cmp.AOBasicCmpBean"> |
| <description>TestModule#AOBasicCmpBean</description> |
| <table name="entity"/> |
| <named-query name="AOBasicCmpBean.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM AOBasicCmpBean AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <named-query name="AOBasicCmpBean.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM AOBasicCmpBean AS o WHERE 1 = 0</query> |
| </named-query> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="last_name"/> |
| </attribute-override> |
| </entity> |
| <entity name="EncCmpBean" class="openejb.org.apache.openejb.test.entity.cmp.EncCmpBean"> |
| <description>TestModule#EncCmpBean</description> |
| <table name="entity"/> |
| <named-query name="EncCmpBean.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM EncCmpBean AS o WHERE 1 = 0</query> |
| </named-query> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="last_name"/> |
| </attribute-override> |
| </entity> |
| <entity name="CmpRMIIIOPBean" class="openejb.org.apache.openejb.test.entity.cmp.CmpRMIIIOPBean"> |
| <description>TestModule#CmpRMIIIOPBean</description> |
| <table name="entity"/> |
| <named-query name="CmpRMIIIOPBean.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM CmpRMIIIOPBean AS o WHERE 1 = 0</query> |
| </named-query> |
| <attribute-override name="primaryKey"> |
| <column name="primaryKey"/> |
| </attribute-override> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attribute-override name="lastName"> |
| <column name="last_name"/> |
| </attribute-override> |
| </entity> |
| <entity name="BasicCmp2" class="openejb.org.apache.openejb.test.entity.cmp.BasicCmp2"> |
| <description>TestModule#BasicCmp2Bean</description> |
| <table name="entity"/> |
| <named-query name="BasicCmp2.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM BasicCmp2 AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <named-query name="BasicCmp2.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM BasicCmp2 AS o WHERE 1 = 0</query> |
| </named-query> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| <generated-value strategy="IDENTITY"/> |
| </id> |
| <basic name="firstName"> |
| <column name="first_name"/> |
| </basic> |
| <basic name="lastName"> |
| <column name="last_name"/> |
| </basic> |
| </attributes> |
| </entity> |
| <entity name="BasicCmp2Pojo" class="openejb.org.apache.openejb.test.entity.cmp.BasicCmp2Pojo"> |
| <description>TestModule#BasicCmp2PojoBean</description> |
| <table name="entity"/> |
| <named-query name="BasicCmp2Pojo.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM BasicCmp2 AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <named-query name="BasicCmp2Pojo.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM BasicCmp2 AS o WHERE 1 = 0</query> |
| </named-query> |
| <attribute-override name="firstName"> |
| <column name="first_name"/> |
| </attribute-override> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| <generated-value strategy="IDENTITY"/> |
| </id> |
| <basic name="lastName"> |
| <column name="last_name"/> |
| </basic> |
| </attributes> |
| </entity> |
| <entity name="AOBasicCmp2" class="openejb.org.apache.openejb.test.entity.cmp.AOBasicCmp2"> |
| <description>TestModule#AOBasicCmp2Bean</description> |
| <table name="entity"/> |
| <named-query name="AOBasicCmp2.findByLastName(java.lang.String)"> |
| <query>SELECT OBJECT(o) FROM AOBasicCmp2 AS o WHERE o.lastName = ?1</query> |
| </named-query> |
| <named-query name="AOBasicCmp2.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM AOBasicCmp2 AS o WHERE 1 = 0</query> |
| </named-query> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| <generated-value strategy="IDENTITY"/> |
| </id> |
| <basic name="firstName"> |
| <column name="first_name"/> |
| </basic> |
| <basic name="lastName"> |
| <column name="last_name"/> |
| </basic> |
| <basic name="number"/> |
| </attributes> |
| </entity> |
| <entity name="EncCmp2" class="openejb.org.apache.openejb.test.entity.cmp.EncCmp2"> |
| <description>TestModule#EncCmp2Bean</description> |
| <table name="entity"/> |
| <named-query name="EncCmp2.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM EncCmp2 AS o WHERE 1 = 0</query> |
| </named-query> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| <generated-value strategy="IDENTITY"/> |
| </id> |
| <basic name="firstName"> |
| <column name="first_name"/> |
| </basic> |
| <basic name="lastName"> |
| <column name="last_name"/> |
| </basic> |
| </attributes> |
| </entity> |
| <entity name="Cmp2RmiIiop" class="openejb.org.apache.openejb.test.entity.cmp.Cmp2RmiIiop"> |
| <description>TestModule#Cmp2RMIIIOPBean</description> |
| <table name="entity"/> |
| <named-query name="Cmp2RmiIiop.findEmptyCollection"> |
| <query>SELECT OBJECT(o) FROM Cmp2RmiIiop AS o WHERE 1 = 0</query> |
| </named-query> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| <generated-value strategy="IDENTITY"/> |
| </id> |
| <basic name="firstName"> |
| <column name="first_name"/> |
| </basic> |
| <basic name="lastName"> |
| <column name="last_name"/> |
| </basic> |
| </attributes> |
| </entity> |
| <entity name="OneOwningSideBean" class="openejb.org.apache.openejb.test.entity.cmr.cmrmapping.OneOwningSideBean"> |
| <description>TestModule#OneOwningSideBean</description> |
| <table name="OneOwning"/> |
| <id-class class="org.apache.openejb.test.entity.cmr.cmrmapping.CompoundPK"/> |
| <attributes> |
| <id name="id"> |
| <column name="col_id"/> |
| </id> |
| <id name="field1"> |
| <column name="col_field1"/> |
| </id> |
| <one-to-one name="oneInverseSide"> |
| <join-column referenced-column-name="col_id" name="col_field1"/> |
| </one-to-one> |
| </attributes> |
| </entity> |
| <entity name="OneInverseSideBean" class="openejb.org.apache.openejb.test.entity.cmr.cmrmapping.OneInverseSideBean"> |
| <description>TestModule#OneInverseSideBean</description> |
| <table name="OneInverse"/> |
| <attributes> |
| <id name="id"> |
| <column name="col_id"/> |
| </id> |
| <one-to-many name="manyOwningSide" mapped-by="oneInverseSide"/> |
| <one-to-one name="oneOwningSide" mapped-by="oneInverseSide"/> |
| </attributes> |
| </entity> |
| <entity name="ManyOwningSideBean" class="openejb.org.apache.openejb.test.entity.cmr.cmrmapping.ManyOwningSideBean"> |
| <description>TestModule#ManyOwningSideBean</description> |
| <table name="ManyOwning"/> |
| <id-class class="org.apache.openejb.test.entity.cmr.cmrmapping.CompoundPK"/> |
| <named-query name="ManyOwningSideBean.ejbSelectSomething(java.lang.Integer)"> |
| <query>SELECT m.oneInverseSide FROM ManyOwningSideBean m WHERE m.id = ?1</query> |
| </named-query> |
| <attributes> |
| <id name="id"> |
| <column name="col_id"/> |
| </id> |
| <id name="field1"> |
| <column name="col_field1"/> |
| </id> |
| <many-to-one name="oneInverseSide"> |
| <join-column referenced-column-name="col_id" name="col_field1"/> |
| </many-to-one> |
| </attributes> |
| </entity> |
| <entity name="Address" class="openejb.org.apache.openejb.test.entity.cmp2.petstore.Address"> |
| <description>TestModule#AddressEJB</description> |
| <table name="address"/> |
| <attributes> |
| <id name="OpenEJB_pk"> |
| <generated-value strategy="AUTO"/> |
| </id> |
| <basic name="street"> |
| <column name="street"/> |
| </basic> |
| <basic name="city"> |
| <column name="city"/> |
| </basic> |
| </attributes> |
| </entity> |
| <entity name="Storage" class="openejb.org.apache.openejb.test.entity.cmp2.model.Storage"> |
| <description>TestModule#StorageBean</description> |
| <table name="storage"/> |
| <attributes> |
| <id name="id"> |
| <column name="id"/> |
| </id> |
| <basic name="blob"> |
| <column name="blob_column"/> |
| </basic> |
| <basic name="char"> |
| <column name="char_column"/> |
| </basic> |
| </attributes> |
| </entity> |
| </entity-mappings> |