blob: ca6674e66d1889f7b8a92bb5917aa5511afe947f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<ejb-jar>
<display-name>ejb</display-name>
<enterprise-beans>
<entity>
<display-name>A</display-name>
<ejb-name>A</ejb-name>
<home>cascadeDelete.AHome</home>
<remote>cascadeDelete.A</remote>
<local-home>cascadeDelete.LocalAHome</local-home>
<local>cascadeDelete.LocalA</local>
<ejb-class>cascadeDelete.ABean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<abstract-schema-name>A</abstract-schema-name>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<ejb-local-ref>
<ejb-ref-name>ejb/SimpleB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>cascadeDelete.LocalBHome</local-home>
<local>cascadeDelete.LocalB</local>
<ejb-link>B</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/SimpleC</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>cascadeDelete.LocalCHome</local-home>
<local>cascadeDelete.LocalC</local>
<ejb-link>C</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/SimpleD</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>cascadeDelete.LocalDHome</local-home>
<local>cascadeDelete.LocalD</local>
<ejb-link>D</ejb-link>
</ejb-local-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT Object(o) FROM A o</ejb-ql>
</query>
</entity>
<entity>
<display-name>B</display-name>
<ejb-name>B</ejb-name>
<home>cascadeDelete.BHome</home>
<remote>cascadeDelete.B</remote>
<local-home>cascadeDelete.LocalBHome</local-home>
<local>cascadeDelete.LocalB</local>
<ejb-class>cascadeDelete.BBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<abstract-schema-name>B</abstract-schema-name>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT Object(o) FROM B o</ejb-ql>
</query>
</entity>
<entity>
<display-name>C</display-name>
<ejb-name>C</ejb-name>
<home>cascadeDelete.CHome</home>
<remote>cascadeDelete.C</remote>
<local-home>cascadeDelete.LocalCHome</local-home>
<local>cascadeDelete.LocalC</local>
<ejb-class>cascadeDelete.CBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<abstract-schema-name>C</abstract-schema-name>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT Object(o) FROM C o</ejb-ql>
</query>
</entity>
<entity>
<display-name>D</display-name>
<ejb-name>D</ejb-name>
<home>cascadeDelete.DHome</home>
<remote>cascadeDelete.D</remote>
<local-home>cascadeDelete.LocalDHome</local-home>
<local>cascadeDelete.LocalD</local>
<ejb-class>cascadeDelete.DBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<abstract-schema-name>D</abstract-schema-name>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT Object(o) FROM D o</ejb-ql>
</query>
<query>
<query-method>
<method-name>findInRange</method-name>
<method-params>
<method-param>java.lang.Integer</method-param>
<method-param>java.lang.Integer</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT Object(o) FROM D o WHERE o.id between ?1 AND ?2</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>A-B</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>B</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>B</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>a</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>A</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>A</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>bs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>A-C</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>C</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>C</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>a</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>A</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>A</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>cs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>A-D</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>D</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>D</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>a</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>A</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>A</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>ds</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>B-C</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>C</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>C</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>b</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>B</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>B</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>c</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>B-D</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>D</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<!--cascade-delete/-->
<relationship-role-source>
<ejb-name>D</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>b</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>B</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>B</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>ds</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>C-D</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>D</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>D</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>c</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>C</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>C</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>ds</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<description>This value was set as a default by Forte For Java.</description>
<method>
<ejb-name>A</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<description>This value was set as a default by Forte For Java.</description>
<method>
<ejb-name>B</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<description>This value was set as a default by Forte For Java.</description>
<method>
<ejb-name>C</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<description>This value was set as a default by Forte For Java.</description>
<method>
<ejb-name>D</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>