You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by li...@apache.org on 2007/10/08 20:48:39 UTC

svn commit: r582929 [3/3] - in /geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors: ./ META-INF/ schema/ src/ src/org/ src/org/apache/ src/org/apache/geronimo/ src/org/apache/geronimo/devtools/ src/org/apache/geronimo/devt...

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/ejb-jar.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/ejb-jar.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/ejb-jar.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,242 @@
+<?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. -->
+  
+<!--DOCTYPE ejb-jar PUBLIC
+      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+      "http://java.sun.com/dtd/ejb-jar_2_0.dtd" -->
+
+<ejb-jar>
+   <display-name>CMP 2.0 Lab Jar</display-name>
+
+   <enterprise-beans>
+      <session>
+         <description>JUnit Session Bean Test Runner</description>
+         <ejb-name>EJBTestRunnerEJB</ejb-name>
+         <home>net.sourceforge.junitejb.EJBTestRunnerHome</home>
+         <remote>net.sourceforge.junitejb.EJBTestRunner</remote>
+         <ejb-class>net.sourceforge.junitejb.EJBTestRunnerBean</ejb-class>
+         <session-type>Stateless</session-type>
+         <transaction-type>Bean</transaction-type>
+      </session>
+
+      <entity>
+         <display-name>Organization Entity Bean</display-name>
+         <ejb-name>OrganizationEJB</ejb-name>
+
+         <local-home>org.jboss.docs.cmp2.crimeportal.OrganizationHome</local-home>
+         <local>org.jboss.docs.cmp2.crimeportal.Organization</local>
+         <ejb-class>org.jboss.docs.cmp2.crimeportal.OrganizationBean</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>organization</abstract-schema-name>
+
+         <cmp-field><field-name>name</field-name></cmp-field>
+         <cmp-field><field-name>description</field-name></cmp-field>
+
+         <primkey-field>name</primkey-field>
+      </entity>
+
+      <entity>
+         <display-name>Gangster Entity Bean</display-name>
+         <ejb-name>GangsterEJB</ejb-name>
+
+         <local-home>org.jboss.docs.cmp2.crimeportal.GangsterHome</local-home>
+         <local>org.jboss.docs.cmp2.crimeportal.Gangster</local>
+         <ejb-class>org.jboss.docs.cmp2.crimeportal.GangsterBean</ejb-class>
+
+         <persistence-type>Container</persistence-type>
+         <prim-key-class>java.lang.Integer</prim-key-class>
+         <reentrant>False</reentrant> 
+         <cmp-version>2.x</cmp-version>
+         <abstract-schema-name>gangster</abstract-schema-name>
+         
+         <cmp-field><field-name>gangsterId</field-name></cmp-field>
+         <cmp-field><field-name>name</field-name></cmp-field>
+         <cmp-field><field-name>nickName</field-name></cmp-field>
+         <cmp-field><field-name>badness</field-name></cmp-field>
+         
+         <primkey-field>gangsterId</primkey-field>
+
+         <query>
+            <query-method>
+               <method-name>findBadDudes</method-name>
+               <method-params><method-param>int</method-param></method-params>
+            </query-method>
+            <ejb-ql><![CDATA[
+               SELECT OBJECT(g)
+               FROM gangster g
+               WHERE g.badness > ?1
+            ]]></ejb-ql>
+         </query>
+
+         <query>
+            <query-method>
+               <method-name>ejbSelectBoss</method-name>
+               <method-params>
+                  <method-param>java.lang.String</method-param>
+               </method-params>
+            </query-method>
+            <ejb-ql><![CDATA[
+               SELECT DISTINCT underling.organization.theBoss
+               FROM gangster underling
+               WHERE underling.name = ?1 OR underling.nickName = ?1
+            ]]></ejb-ql>
+         </query>
+      </entity>
+
+      <entity>
+         <display-name>Job Entity Bean</display-name>
+         <ejb-name>JobEJB</ejb-name>
+
+         <local-home>org.jboss.docs.cmp2.crimeportal.JobHome</local-home>
+         <local>org.jboss.docs.cmp2.crimeportal.Job</local>
+         <ejb-class>org.jboss.docs.cmp2.crimeportal.JobBean</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>job</abstract-schema-name>
+         
+         <cmp-field><field-name>name</field-name></cmp-field>
+         <cmp-field><field-name>score</field-name></cmp-field>
+         <cmp-field><field-name>setupCost</field-name></cmp-field>
+         
+         <primkey-field>name</primkey-field>
+      </entity>
+   </enterprise-beans>
+
+   <relationships>
+      <ejb-relation>
+         <ejb-relation-name>Organization-Gangster</ejb-relation-name>
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>org-has-gangsters</ejb-relationship-role-name>
+
+            <multiplicity>One</multiplicity> 
+
+            <relationship-role-source> 
+               <ejb-name>OrganizationEJB</ejb-name> 
+            </relationship-role-source> 
+            
+            <cmr-field>
+               <cmr-field-name>memberGangsters</cmr-field-name> 
+               <cmr-field-type>java.util.Set</cmr-field-type> 
+            </cmr-field> 
+         </ejb-relationship-role> 
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>gangster-belongs-to-org</ejb-relationship-role-name>
+            
+            <multiplicity>Many</multiplicity> 
+            
+            <relationship-role-source>   
+               <ejb-name>GangsterEJB</ejb-name> 
+            </relationship-role-source> 
+          
+            <cmr-field> 
+               <cmr-field-name>organization</cmr-field-name>
+            </cmr-field> 
+         </ejb-relationship-role> 
+      </ejb-relation> 
+
+      <ejb-relation>
+         <ejb-relation-name>Gangster-Jobs</ejb-relation-name>
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>gangster-has-jobs</ejb-relationship-role-name>
+
+            <multiplicity>Many</multiplicity> 
+
+            <relationship-role-source> 
+               <ejb-name>GangsterEJB</ejb-name> 
+            </relationship-role-source> 
+            
+            <cmr-field>
+               <cmr-field-name>jobs</cmr-field-name> 
+               <cmr-field-type>java.util.Set</cmr-field-type> 
+            </cmr-field> 
+         </ejb-relationship-role> 
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>job-has-gangsters</ejb-relationship-role-name>
+            
+            <multiplicity>Many</multiplicity> 
+            
+            <relationship-role-source>   
+               <ejb-name>JobEJB</ejb-name> 
+            </relationship-role-source> 
+          
+            <cmr-field> 
+               <cmr-field-name>gangsters</cmr-field-name>
+               <cmr-field-type>java.util.Set</cmr-field-type> 
+            </cmr-field> 
+         </ejb-relationship-role> 
+      </ejb-relation> 
+
+      <ejb-relation>
+         <ejb-relation-name>Organization-Boss</ejb-relation-name>
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>organization-has-a-boss</ejb-relationship-role-name>
+
+            <multiplicity>One</multiplicity> 
+
+            <relationship-role-source> 
+               <ejb-name>OrganizationEJB</ejb-name> 
+            </relationship-role-source> 
+            
+            <cmr-field>
+               <cmr-field-name>theBoss</cmr-field-name> 
+            </cmr-field> 
+         </ejb-relationship-role> 
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>boss-runs-an-organization</ejb-relationship-role-name>
+            
+            <multiplicity>One</multiplicity> 
+            
+            <relationship-role-source>   
+               <ejb-name>GangsterEJB</ejb-name> 
+            </relationship-role-source> 
+
+         </ejb-relationship-role> 
+      </ejb-relation> 
+   </relationships>
+
+   <assembly-descriptor>
+
+      <container-transaction>
+         <method>
+            <ejb-name>OrganizationEJB</ejb-name>
+            <method-name>*</method-name>
+         </method>
+         <method>
+            <ejb-name>GangsterEJB</ejb-name>
+            <method-name>*</method-name>
+         </method>
+         <method>
+            <ejb-name>JobEJB</ejb-name>
+            <method-name>*</method-name>
+         </method>
+         <trans-attribute>Required</trans-attribute>
+      </container-transaction>
+
+   </assembly-descriptor>
+</ejb-jar>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-application.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-application.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-application.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
+  <sys:environment>
+    <sys:moduleId>
+      <sys:groupId>j2g</sys:groupId>
+      <sys:artifactId>application</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>ear</sys:type>
+    </sys:moduleId>
+    <sys:dependencies/>
+  </sys:environment>
+  <security:security>
+    <security:default-principal>
+      <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="amila" domain-name="securiyDomain" realm-name="securiyDomain"/>
+    </security:default-principal>
+    <security:role-mappings>
+      <security:role role-name="admin">
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="amila" domain-name="securiyDomain" realm-name="securiyDomain"/>
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="rasika" domain-name="securiyDomain" realm-name="securiyDomain"/>
+      </security:role>
+      <security:role role-name="manager">
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="sandakith" domain-name="securiyDomain" realm-name="securiyDomain"/>
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="sris" domain-name="securiyDomain" realm-name="securiyDomain"/>
+      </security:role>
+    </security:role-mappings>
+  </security:security>
+</application>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-web.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-web.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-web.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
+  <sys:environment>
+    <sys:moduleId>
+      <sys:groupId>j2g</sys:groupId>
+      <sys:artifactId>web-module</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>war</sys:type>
+    </sys:moduleId>
+    <sys:dependencies>
+      <sys:dependency>
+        <sys:groupId>j2g.jdbc</sys:groupId>
+        <sys:artifactId>TestDB</sys:artifactId>
+        <sys:version>1.0</sys:version>
+        <sys:type>rar</sys:type>
+      </sys:dependency>
+    </sys:dependencies>
+  </sys:environment>
+  <security-realm-name>securityDomation</security-realm-name>
+  <context-root>/myApp</context-root>
+  <naming:resource-ref>
+    <naming:ref-name>resource1</naming:ref-name>
+    <naming:resource-link>TestDB</naming:resource-link>
+  </naming:resource-ref>
+  <security:security>
+    <security:default-principal>
+      <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="anonymous" domain-name="securityDomation" realm-name="securityDomation"/>
+    </security:default-principal>
+    <security:role-mappings>
+      <security:role role-name="amila1">
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="amila1" domain-name="securityDomation" realm-name="securityDomation"/>
+      </security:role>
+      <security:role role-name="amila2">
+        <security:realm-principal class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" name="amila2" domain-name="securityDomation" realm-name="securityDomation"/>
+      </security:role>
+    </security:role-mappings>
+  </security:security>
+</web-app>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss-app.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss-app.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss-app.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss-app.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,42 @@
+<?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. -->
+  
+<!--DOCTYPE ejb-jar PUBLIC
+      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+      "http://java.sun.com/dtd/ejb-jar_2_0.dtd" -->
+
+<jboss-app>
+    <security-domain>securiyDomain</security-domain>
+    <unauthenticated-principal>amila</unauthenticated-principal>
+    <jmx-name>messaging</jmx-name>
+    <module>
+        <service>mailservice.sar</service>
+    </module>
+    <module>
+        <har>hibanate.sar</har>
+    </module>
+    <security-role>
+        <role-name>admin</role-name>
+        <principal-name>amila</principal-name>
+        <principal-name>rasika</principal-name>
+    </security-role>
+    <security-role>
+        <role-name>manager</role-name>
+        <principal-name>sandakith</principal-name>
+        <principal-name>sris</principal-name>
+    </security-role>
+
+</jboss-app>
\ No newline at end of file

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss-app.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,40 @@
+<?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. -->
+  
+<!--DOCTYPE ejb-jar PUBLIC
+      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+      "http://java.sun.com/dtd/ejb-jar_2_0.dtd" -->
+
+<jboss>
+   <enterprise-beans>
+      <session>
+         <ejb-name>EJBTestRunnerEJB</ejb-name>
+         <jndi-name>ejb/EJBTestRunner</jndi-name>
+      </session>
+      <entity>
+         <ejb-name>OrganizationEJB</ejb-name>
+         <local-jndi-name>crimeportal/Organization</local-jndi-name>
+      </entity>
+      <entity>
+         <ejb-name>GangsterEJB</ejb-name>
+         <local-jndi-name>crimeportal/Gangster</local-jndi-name>
+      </entity>
+      <entity>
+         <ejb-name>JobEJB</ejb-name>
+         <local-jndi-name>crimeportal/Job</local-jndi-name>
+      </entity>
+   </enterprise-beans>
+</jboss>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jboss.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jbosscmp-jdbc.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jbosscmp-jdbc.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jbosscmp-jdbc.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jbosscmp-jdbc.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,151 @@
+<?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. -->
+  
+<!--DOCTYPE ejb-jar PUBLIC
+      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+      "http://java.sun.com/dtd/ejb-jar_2_0.dtd" -->
+
+
+<jbosscmp-jdbc>
+   <defaults>
+      <datasource>java:/DefaultDS</datasource>
+      <datasource-mapping>Hypersonic SQL</datasource-mapping>
+      <create-table>true</create-table>
+      <remove-table>true</remove-table>
+      <pk-constraint>true</pk-constraint>
+      <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
+   </defaults>
+
+   <enterprise-beans>
+
+      <entity>
+         <ejb-name>OrganizationEJB</ejb-name>
+         <table-name>organization</table-name>
+
+         <cmp-field>
+            <field-name>name</field-name>
+            <column-name>name</column-name>
+         </cmp-field>
+         <cmp-field>
+            <field-name>description</field-name>
+            <column-name>desc</column-name>
+         </cmp-field>
+      </entity>
+
+      <entity>
+         <ejb-name>GangsterEJB</ejb-name>
+         <table-name>gangster</table-name>
+
+         <cmp-field>
+            <field-name>gangsterId</field-name>
+            <column-name>id</column-name>
+         </cmp-field>
+         <cmp-field>
+            <field-name>name</field-name>
+            <column-name>name</column-name>
+         </cmp-field>
+         <cmp-field>
+            <field-name>nickName</field-name>
+            <column-name>nick_name</column-name>
+            <jdbc-type>VARCHAR</jdbc-type>
+            <sql-type>VARCHAR(64)</sql-type>
+         </cmp-field>
+         <cmp-field>
+            <field-name>badness</field-name>
+            <column-name>badness</column-name>
+         </cmp-field>
+      </entity>
+
+      <entity>
+         <ejb-name>JobEJB</ejb-name>
+         <table-name>job</table-name>
+
+         <cmp-field>
+            <field-name>name</field-name>
+            <column-name>name</column-name>
+         </cmp-field>
+         <cmp-field>
+            <field-name>score</field-name>
+            <column-name>score</column-name>
+         </cmp-field>
+         <cmp-field>
+            <field-name>setupCost</field-name>
+            <column-name>setup_cost</column-name>
+         </cmp-field>
+      </entity>
+   </enterprise-beans>
+
+   <relationships>
+      <ejb-relation>
+         <ejb-relation-name>Organization-Gangster</ejb-relation-name>
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>org-has-gangsters</ejb-relationship-role-name>
+            <key-fields>
+               <key-field>
+                  <field-name>name</field-name>
+                  <column-name>organization</column-name>
+               </key-field>
+            </key-fields>
+         </ejb-relationship-role> 
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>gangster-belongs-to-org</ejb-relationship-role-name>
+         </ejb-relationship-role> 
+      </ejb-relation> 
+
+      <ejb-relation>
+         <ejb-relation-name>Gangster-Jobs</ejb-relation-name>
+         <relation-table-mapping>
+            <table-name>gangster_job</table-name>
+         </relation-table-mapping>
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>gangster-has-jobs</ejb-relationship-role-name>
+            <key-fields>
+               <key-field>
+                  <field-name>gangsterId</field-name>
+                  <column-name>gangster</column-name>
+               </key-field>
+            </key-fields>
+         </ejb-relationship-role> 
+
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>job-has-gangsters</ejb-relationship-role-name>
+            <key-fields>
+               <key-field>
+                  <field-name>name</field-name>
+                  <column-name>job</column-name>
+               </key-field>
+            </key-fields>
+         </ejb-relationship-role> 
+      </ejb-relation> 
+
+      <ejb-relation>
+         <ejb-relation-name>Organization-Boss</ejb-relation-name>
+		 
+         <ejb-relationship-role> 
+            <ejb-relationship-role-name>organization-has-a-boss</ejb-relationship-role-name>
+			<key-fields>
+			    <key-field>
+				  <field-name>name</field-name>
+				  <column-name>boss</column-name>
+				</key-field>
+			</key-fields>
+         </ejb-relationship-role>  
+      </ejb-relation> 
+   </relationships>
+</jbosscmp-jdbc>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/jbosscmp-jdbc.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/openejb-jar.xml?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/openejb-jar.xml (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/openejb-jar.xml Mon Oct  8 11:48:35 2007
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
+  <sys:environment> 
+    <sys:moduleId> 
+      <sys:groupId>j2g</sys:groupId>  
+      <sys:artifactId>ejb-module</sys:artifactId>  
+      <sys:version>1.0</sys:version>  
+      <sys:type>jar</sys:type> 
+    </sys:moduleId>  
+    <sys:dependencies> 
+      <sys:dependency> 
+        <sys:groupId>j2g.java:</sys:groupId>  
+        <sys:artifactId>DefaultDS</sys:artifactId>  
+        <sys:version>1.0</sys:version>  
+        <sys:type>rar</sys:type> 
+      </sys:dependency> 
+    </sys:dependencies> 
+  </sys:environment>
+  <naming:cmp-connection-factory> 
+    <naming:resource-link>DefaultDS</naming:resource-link> 
+  </naming:cmp-connection-factory>
+  <enterprise-beans>
+    <session>
+      <ejb-name>EJBTestRunnerEJB</ejb-name>
+      <jndi-name>ejb/EJBTestRunner</jndi-name>
+    </session>
+    <entity>
+      <ejb-name>OrganizationEJB</ejb-name>
+      <local-jndi-name>crimeportal/Organization</local-jndi-name>
+      <table-name>organization</table-name>
+      <cmp-field-mapping> 
+        <cmp-field-name>name</cmp-field-name>  
+        <table-column>name</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>description</cmp-field-name>  
+        <table-column>desc</table-column> 
+      </cmp-field-mapping>
+    </entity>
+    <entity>
+      <ejb-name>GangsterEJB</ejb-name>
+      <local-jndi-name>crimeportal/Gangster</local-jndi-name>
+      <table-name>gangster</table-name>
+      <cmp-field-mapping> 
+        <cmp-field-name>gangsterId</cmp-field-name>  
+        <table-column>id</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>name</cmp-field-name>  
+        <table-column>name</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>nickName</cmp-field-name>  
+        <table-column>nick_name</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>badness</cmp-field-name>  
+        <table-column>badness</table-column> 
+      </cmp-field-mapping>
+    </entity>
+    <entity>
+      <ejb-name>JobEJB</ejb-name>
+      <local-jndi-name>crimeportal/Job</local-jndi-name>
+      <table-name>job</table-name>
+      <cmp-field-mapping> 
+        <cmp-field-name>name</cmp-field-name>  
+        <table-column>name</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>score</cmp-field-name>  
+        <table-column>score</table-column> 
+      </cmp-field-mapping>
+      <cmp-field-mapping> 
+        <cmp-field-name>setupCost</cmp-field-name>  
+        <table-column>setup_cost</table-column> 
+      </cmp-field-mapping>
+    </entity>
+  </enterprise-beans>
+  <relationships> 
+    <ejb-relation> 
+      <ejb-relation-name>Organization-Gangster</ejb-relation-name>  
+      <ejb-relationship-role> 
+        <ejb-relationship-role-name>org-has-gangsters</ejb-relationship-role-name>  
+        <relationship-role-source> 
+          <ejb-name>OrganizationEJB</ejb-name> 
+        </relationship-role-source>  
+        <cmr-field> 
+          <cmr-field-name>memberGangsters</cmr-field-name> 
+        </cmr-field>  
+        <role-mapping> 
+          <cmr-field-mapping> 
+            <key-column>name</key-column>  
+            <foreign-key-column>organization</foreign-key-column> 
+          </cmr-field-mapping> 
+        </role-mapping> 
+      </ejb-relationship-role> 
+    </ejb-relation>  
+    <ejb-relation> 
+      <ejb-relation-name>Gangster-Jobs</ejb-relation-name>  
+      <many-to-many-table-name>gangster_job</many-to-many-table-name>  
+      <ejb-relationship-role> 
+        <ejb-relationship-role-name>gangster-has-jobs</ejb-relationship-role-name>  
+        <relationship-role-source> 
+          <ejb-name>GangsterEJB</ejb-name> 
+        </relationship-role-source>  
+        <cmr-field> 
+          <cmr-field-name>jobs</cmr-field-name> 
+        </cmr-field>  
+        <role-mapping> 
+          <cmr-field-mapping> 
+            <key-column>gangsterId</key-column>  
+            <foreign-key-column>gangster</foreign-key-column> 
+          </cmr-field-mapping> 
+        </role-mapping> 
+      </ejb-relationship-role>  
+      <ejb-relationship-role> 
+        <ejb-relationship-role-name>job-has-gangsters</ejb-relationship-role-name>  
+        <relationship-role-source> 
+          <ejb-name>JobEJB</ejb-name> 
+        </relationship-role-source>  
+        <cmr-field> 
+          <cmr-field-name>gangsters</cmr-field-name> 
+        </cmr-field>  
+        <role-mapping> 
+          <cmr-field-mapping> 
+            <key-column>name</key-column>  
+            <foreign-key-column>job</foreign-key-column> 
+          </cmr-field-mapping> 
+        </role-mapping> 
+      </ejb-relationship-role> 
+    </ejb-relation>  
+    <ejb-relation> 
+      <ejb-relation-name>Organization-Boss</ejb-relation-name>  
+      <ejb-relationship-role> 
+        <ejb-relationship-role-name>organization-has-a-boss</ejb-relationship-role-name>  
+        <relationship-role-source> 
+          <ejb-name>OrganizationEJB</ejb-name> 
+        </relationship-role-source>  
+        <cmr-field> 
+          <cmr-field-name>theBoss</cmr-field-name> 
+        </cmr-field>  
+        <role-mapping> 
+          <cmr-field-mapping> 
+            <key-column>name</key-column>  
+            <foreign-key-column>boss</foreign-key-column> 
+          </cmr-field-mapping> 
+        </role-mapping> 
+      </ejb-relationship-role> 
+    </ejb-relation> 
+  </relationships>
+</openejb-jar>

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test-resources/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/app/test/TestApplicationDescriptorTool.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/app/test/TestApplicationDescriptorTool.java?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/app/test/TestApplicationDescriptorTool.java (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/app/test/TestApplicationDescriptorTool.java Mon Oct  8 11:48:35 2007
@@ -0,0 +1,33 @@
+/**
+ *  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.
+ */
+ package org.apache.geronimo.devtools.j2g.descriptors.app.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.apache.geronimo.devtools.j2g.descriptors.app.ApplicationDescriptorTool;
+
+public class TestApplicationDescriptorTool extends TestCase {
+
+    public void testMigrate() {
+        String jbossApplicatinXmlFile = "test-resources/jboss-app.xml";
+        ApplicationDescriptorTool applicationDescriptorTool = new ApplicationDescriptorTool();
+        applicationDescriptorTool.migrate(new File(jbossApplicatinXmlFile), null);
+    }
+
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/app/test/TestApplicationDescriptorTool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestCMPDescriptorsTool.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestCMPDescriptorsTool.java?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestCMPDescriptorsTool.java (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestCMPDescriptorsTool.java Mon Oct  8 11:48:35 2007
@@ -0,0 +1,34 @@
+/**
+ *  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.
+ */
+
+package org.apache.geronimo.devtools.j2g.descriptors.cmp.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.apache.geronimo.devtools.j2g.descriptors.comp.CMPDescriptorTool;
+
+public class TestCMPDescriptorsTool extends TestCase {
+
+    public void testMigrate() {
+        File file = new File("test-resources/jbosscmp-jdbc.xml");
+        CMPDescriptorTool cmpDescriptorTool = new CMPDescriptorTool();
+        cmpDescriptorTool.migrate(file, null);
+    }
+    
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestCMPDescriptorsTool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestEJBjarXmlProcessor.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestEJBjarXmlProcessor.java?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestEJBjarXmlProcessor.java (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestEJBjarXmlProcessor.java Mon Oct  8 11:48:35 2007
@@ -0,0 +1,35 @@
+/**
+ *  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.
+ */
+
+package org.apache.geronimo.devtools.j2g.descriptors.cmp.test;
+
+import junit.framework.TestCase;
+
+import org.apache.geronimo.devtools.j2g.descriptors.comp.EJBJarXmlProcessor;
+import org.dom4j.DocumentException;
+
+public class TestEJBjarXmlProcessor extends TestCase {
+
+    public void testGetRelationships(){
+        EJBJarXmlProcessor ejbJarXmlProcessor = new EJBJarXmlProcessor("test-resources/ejb-jar.xml");
+        try {
+            ejbJarXmlProcessor.getRelationships();
+        } catch (DocumentException e) {
+            e.printStackTrace();
+        }
+    }
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/cmp/test/TestEJBjarXmlProcessor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/ejb/test/TestEJBDescriptorTool.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/ejb/test/TestEJBDescriptorTool.java?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/ejb/test/TestEJBDescriptorTool.java (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/ejb/test/TestEJBDescriptorTool.java Mon Oct  8 11:48:35 2007
@@ -0,0 +1,33 @@
+/**
+ *  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.
+ */
+ package org.apache.geronimo.devtools.j2g.descriptors.ejb.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.apache.geronimo.devtools.j2g.descriptors.ejb.EJBDescriptorTool;
+
+public class TestEJBDescriptorTool extends TestCase {
+
+    public void testMigrate() {
+        File file = new File("test-resources/jboss.xml");
+        EJBDescriptorTool ejbDescriptorTool = new EJBDescriptorTool();
+        ejbDescriptorTool.migrate(file, null);
+    }
+    
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/ejb/test/TestEJBDescriptorTool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/web/test/TestWebDescriptorTool.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/web/test/TestWebDescriptorTool.java?rev=582929&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/web/test/TestWebDescriptorTool.java (added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/web/test/TestWebDescriptorTool.java Mon Oct  8 11:48:35 2007
@@ -0,0 +1,33 @@
+/**
+ *  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.
+ */
+ package org.apache.geronimo.devtools.j2g.descriptors.web.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.apache.geronimo.devtools.j2g.descriptors.web.WebDescriptorTool;
+
+public class TestWebDescriptorTool extends TestCase {
+
+    public void testMigration() {
+        File file = new File("test-resources/jboss-web.xml");
+        WebDescriptorTool webMigrationTool = new WebDescriptorTool();
+        webMigrationTool.migrate(file, null);
+    }
+
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.descriptors/test/org/apache/geronimo/devtools/j2g/descriptors/web/test/TestWebDescriptorTool.java
------------------------------------------------------------------------------
    svn:eol-style = native