1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
<?xml version="1.0" encoding="ISO-8859-15"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
version="2.1">
<enterprise-beans>
<entity>
<description>
Describe here the entity bean Match
</description>
<display-name>Match/MatchEJB</display-name>
<ejb-name>MatchEJB</ejb-name>
<home>match.MatchHome</home>
<remote>match.Match</remote>
<ejb-class>match.MatchEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>false</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>MatchEJB</abstract-schema-name>
<cmp-field>
<field-name>date</field-name>
</cmp-field>
<cmp-field>
<field-name>nom</field-name>
</cmp-field>
<primkey-field>date</primkey-field>
<env-entry>
<env-entry-name>name1</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>value1</env-entry-value>
</env-entry>
<ejb-ref>
<ejb-ref-name>JoueurEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>joueur.JoueurHome</home>
<remote>joueur.Joueur</remote>
<ejb-link>JoueurEJB</ejb-link>
</ejb-ref>
</entity>
<entity>
<description>Describe here the entity bean Joueur</description>
<display-name>Joueur/JoueurEJB</display-name>
<ejb-name>JoueurEJB</ejb-name>
<home>joueur.JoueurHome</home>
<remote>joueur.Joueur</remote>
<ejb-class>joueur.JoueurEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>false</reentrant>
<abstract-schema-name>JoueurEJB</abstract-schema-name>
<cmp-field>
<field-name>nom</field-name>
</cmp-field>
<cmp-field>
<field-name>prenom</field-name>
</cmp-field>
<primkey-field>nom</primkey-field>
<env-entry>
<env-entry-name>name1</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>value1</env-entry-value>
</env-entry>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>SELECT OBJECT(c) FROM Joueur AS c</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByPrimaryKey</method-name>
<method-params><method-param>java.lang.String</method-param></method-params>
</query-method>
<ejb-ql>SELECT OBJECT(c) FROM Joueur c
WHERE c.nom = ?1</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>estJouePar</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>
Match_Joueur
</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>MatchEJB</ejb-name>
</relationship-role-source>
<!-- When you have a relationship with more than one object, you can either use a
java.util.Collection or a java.util.Set. We need to identify which one we're
using. How do you choose between a Collection and a Set? A Collection can
contain duplicates, whereas a Set cannot. This needs to match up to your
bean's get/set methods. -->
<cmr-field>
<cmr-field-name>lesJoueurs</cmr-field-name>
<cmr-field-type>
java.util.Collection
</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>
Joueur_Match
</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JoueurEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>MatchEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>JoueurEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar> |
Partager