cmpJAR.ejbgrpx~2~
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:35k
源码类别:

Java编程

开发平台:

Java

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <descriptors>
  3.   <ejb-jar.xml extralocation="" timestamp="1062145639931"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  4. <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
  5. <ejb-jar>
  6.     <enterprise-beans>
  7.         <entity>
  8.             <display-name>Address</display-name>
  9.             <ejb-name>Address</ejb-name>
  10.             <local-home>cmpsample.AddressHome</local-home>
  11.             <local>cmpsample.Address</local>
  12.             <ejb-class>cmpsample.AddressBean</ejb-class>
  13.             <persistence-type>Container</persistence-type>
  14.             <prim-key-class>java.lang.String</prim-key-class>
  15.             <reentrant>False</reentrant>
  16.             <cmp-version>2.x</cmp-version>
  17.             <abstract-schema-name>Address</abstract-schema-name>
  18.             <cmp-field>
  19.                 <field-name>addressID</field-name>
  20.             </cmp-field>
  21.             <cmp-field>
  22.                 <field-name>street</field-name>
  23.             </cmp-field>
  24.             <cmp-field>
  25.                 <field-name>city</field-name>
  26.             </cmp-field>
  27.             <cmp-field>
  28.                 <field-name>zip</field-name>
  29.             </cmp-field>
  30.             <cmp-field>
  31.                 <field-name>state</field-name>
  32.             </cmp-field>
  33.             <cmp-field>
  34.                 <field-name>studentID</field-name>
  35.             </cmp-field>
  36.             <primkey-field>addressID</primkey-field>
  37.         </entity>
  38.         <entity>
  39.             <display-name>Roster</display-name>
  40.             <ejb-name>Roster</ejb-name>
  41.             <local-home>cmpsample.RosterHome</local-home>
  42.             <local>cmpsample.Roster</local>
  43.             <ejb-class>cmpsample.RosterBean</ejb-class>
  44.             <persistence-type>Container</persistence-type>
  45.             <prim-key-class>java.lang.String</prim-key-class>
  46.             <reentrant>False</reentrant>
  47.             <cmp-version>2.x</cmp-version>
  48.             <abstract-schema-name>Roster</abstract-schema-name>
  49.             <cmp-field>
  50.                 <field-name>rosterID</field-name>
  51.             </cmp-field>
  52.             <cmp-field>
  53.                 <field-name>studentID</field-name>
  54.             </cmp-field>
  55.             <cmp-field>
  56.                 <field-name>scheduleID</field-name>
  57.             </cmp-field>
  58.             <primkey-field>rosterID</primkey-field>
  59.             <query>
  60.                 <query-method>
  61.                     <method-name>findByStudentID</method-name>
  62.                     <method-params>
  63.                         <method-param>java.lang.String</method-param>
  64.                     </method-params>
  65.                 </query-method>
  66.                 <ejb-ql>SELECT OBJECT(r) FROM Roster AS r WHERE r.studentID = ?1</ejb-ql>
  67.             </query>
  68.             <query>
  69.                 <query-method>
  70.                     <method-name>findByScheduleID</method-name>
  71.                     <method-params>
  72.                         <method-param>java.lang.String</method-param>
  73.                     </method-params>
  74.                 </query-method>
  75.                 <ejb-ql>SELECT OBJECT(r) FROM Roster AS r WHERE r.scheduleID = ?1</ejb-ql>
  76.             </query>
  77.         </entity>
  78.         <entity>
  79.             <display-name>Student</display-name>
  80.             <ejb-name>Student</ejb-name>
  81.             <local-home>cmpsample.StudentHome</local-home>
  82.             <local>cmpsample.Student</local>
  83.             <ejb-class>cmpsample.StudentBean</ejb-class>
  84.             <persistence-type>Container</persistence-type>
  85.             <prim-key-class>java.lang.String</prim-key-class>
  86.             <reentrant>False</reentrant>
  87.             <cmp-version>2.x</cmp-version>
  88.             <abstract-schema-name>Student</abstract-schema-name>
  89.             <cmp-field>
  90.                 <field-name>studentID</field-name>
  91.             </cmp-field>
  92.             <cmp-field>
  93.                 <field-name>firstname</field-name>
  94.             </cmp-field>
  95.             <cmp-field>
  96.                 <field-name>lastname</field-name>
  97.             </cmp-field>
  98.             <primkey-field>studentID</primkey-field>
  99.             <query>
  100.                 <query-method>
  101.                     <method-name>findByFirstName</method-name>
  102.                     <method-params>
  103.                         <method-param>java.lang.String</method-param>
  104.                     </method-params>
  105.                 </query-method>
  106.                 <ejb-ql>SELECT OBJECT(s) FROM Student AS s WHERE s.firstname = ?1</ejb-ql>
  107.             </query>
  108.             <query>
  109.                 <query-method>
  110.                     <method-name>findByLastName</method-name>
  111.                     <method-params>
  112.                         <method-param>java.lang.String</method-param>
  113.                     </method-params>
  114.                 </query-method>
  115.                 <ejb-ql>SELECT OBJECT(s) FROM Student AS s WHERE s.lastname = ?1</ejb-ql>
  116.             </query>
  117.         </entity>
  118.     </enterprise-beans>
  119.     <relationships>
  120.         <ejb-relation>
  121.             <ejb-relation-name>student-address</ejb-relation-name>
  122.             <ejb-relationship-role>
  123.                 <description>student</description>
  124.                 <ejb-relationship-role-name>StudentRelationshipRole</ejb-relationship-role-name>
  125.                 <multiplicity>One</multiplicity>
  126.                 <relationship-role-source>
  127.                     <description>student</description>
  128.                     <ejb-name>Student</ejb-name>
  129.                 </relationship-role-source>
  130.                 <cmr-field>
  131.                     <description>address</description>
  132.                     <cmr-field-name>address</cmr-field-name>
  133.                     <cmr-field-type>java.util.Collection</cmr-field-type>
  134.                 </cmr-field>
  135.             </ejb-relationship-role>
  136.             <ejb-relationship-role>
  137.                 <description>address</description>
  138.                 <ejb-relationship-role-name>AddressRelationshipRole</ejb-relationship-role-name>
  139.                 <multiplicity>Many</multiplicity>
  140.                 <relationship-role-source>
  141.                     <description>address</description>
  142.                     <ejb-name>Address</ejb-name>
  143.                 </relationship-role-source>
  144.             </ejb-relationship-role>
  145.         </ejb-relation>
  146.         <ejb-relation>
  147.             <ejb-relation-name>student-roster</ejb-relation-name>
  148.             <ejb-relationship-role>
  149.                 <description>student</description>
  150.                 <ejb-relationship-role-name>StudentRelationshipRole</ejb-relationship-role-name>
  151.                 <multiplicity>One</multiplicity>
  152.                 <relationship-role-source>
  153.                     <description>student</description>
  154.                     <ejb-name>Student</ejb-name>
  155.                 </relationship-role-source>
  156.                 <cmr-field>
  157.                     <description>roster</description>
  158.                     <cmr-field-name>roster</cmr-field-name>
  159.                     <cmr-field-type>java.util.Collection</cmr-field-type>
  160.                 </cmr-field>
  161.             </ejb-relationship-role>
  162.             <ejb-relationship-role>
  163.                 <description>roster</description>
  164.                 <ejb-relationship-role-name>RosterRelationshipRole</ejb-relationship-role-name>
  165.                 <multiplicity>Many</multiplicity>
  166.                 <relationship-role-source>
  167.                     <description>roster</description>
  168.                     <ejb-name>Roster</ejb-name>
  169.                 </relationship-role-source>
  170.             </ejb-relationship-role>
  171.         </ejb-relation>
  172.     </relationships>
  173.     <assembly-descriptor>
  174.         <container-transaction>
  175.             <method>
  176.                 <ejb-name>Roster</ejb-name>
  177.                 <method-name>*</method-name>
  178.             </method>
  179.             <trans-attribute>Required</trans-attribute>
  180.         </container-transaction>
  181.         <container-transaction>
  182.             <method>
  183.                 <ejb-name>Student</ejb-name>
  184.                 <method-name>*</method-name>
  185.             </method>
  186.             <trans-attribute>Required</trans-attribute>
  187.         </container-transaction>
  188.         <container-transaction>
  189.             <method>
  190.                 <description />
  191.                 <ejb-name>Address</ejb-name>
  192.                 <method-name>*</method-name>
  193.             </method>
  194.             <trans-attribute>Required</trans-attribute>
  195.         </container-transaction>
  196.     </assembly-descriptor>
  197. </ejb-jar>
  198. ]]></ejb-jar.xml>
  199.   <ejb-borland.xml extralocation="" timestamp="1055859912618"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  200. <!DOCTYPE ejb-jar PUBLIC "-//Borland Software Corporation//DTD Enterprise JavaBeans 2.0//EN" "http://www.borland.com/devsupport/appserver/dtds/ejb-jar_2_0-borland.dtd">
  201. <ejb-jar>
  202.     <enterprise-beans>
  203.         <entity>
  204.             <ejb-name>Address</ejb-name>
  205.             <bean-local-home-name>Address</bean-local-home-name>
  206.             <cmp2-info>
  207.                 <cmp-field>
  208.                     <field-name>addressID</field-name>
  209.                     <column-name>addressID</column-name>
  210.                 </cmp-field>
  211.                 <cmp-field>
  212.                     <field-name>street</field-name>
  213.                     <column-name>street</column-name>
  214.                 </cmp-field>
  215.                 <cmp-field>
  216.                     <field-name>city</field-name>
  217.                     <column-name>city</column-name>
  218.                 </cmp-field>
  219.                 <cmp-field>
  220.                     <field-name>zip</field-name>
  221.                     <column-name>zip</column-name>
  222.                 </cmp-field>
  223.                 <cmp-field>
  224.                     <field-name>state</field-name>
  225.                     <column-name>state</column-name>
  226.                 </cmp-field>
  227.                 <cmp-field>
  228.                     <field-name>studentID</field-name>
  229.                     <column-name>studentID</column-name>
  230.                 </cmp-field>
  231.                 <table-name>address</table-name>
  232.             </cmp2-info>
  233.             <property>
  234.                 <prop-name>data-source-name</prop-name>
  235.                 <prop-type>String</prop-type>
  236.                 <prop-value>cmpDS</prop-value>
  237.             </property>
  238.             <property>
  239.                 <prop-name>ejb-designer-id</prop-name>
  240.                 <prop-type>String</prop-type>
  241.                 <prop-value>Address</prop-value>
  242.             </property>
  243.         </entity>
  244.         <entity>
  245.             <ejb-name>Roster</ejb-name>
  246.             <bean-local-home-name>Roster</bean-local-home-name>
  247.             <cmp2-info>
  248.                 <cmp-field>
  249.                     <field-name>rosterID</field-name>
  250.                     <column-name>rosterID</column-name>
  251.                 </cmp-field>
  252.                 <cmp-field>
  253.                     <field-name>studentID</field-name>
  254.                     <column-name>studentID</column-name>
  255.                 </cmp-field>
  256.                 <cmp-field>
  257.                     <field-name>scheduleID</field-name>
  258.                     <column-name>scheduleID</column-name>
  259.                 </cmp-field>
  260.                 <table-name>roster</table-name>
  261.             </cmp2-info>
  262.             <property>
  263.                 <prop-name>data-source-name</prop-name>
  264.                 <prop-type>String</prop-type>
  265.                 <prop-value>cmpDS</prop-value>
  266.             </property>
  267.             <property>
  268.                 <prop-name>ejb-designer-id</prop-name>
  269.                 <prop-type>String</prop-type>
  270.                 <prop-value>Roster</prop-value>
  271.             </property>
  272.         </entity>
  273.         <entity>
  274.             <ejb-name>Student</ejb-name>
  275.             <bean-local-home-name>Student</bean-local-home-name>
  276.             <cmp2-info>
  277.                 <cmp-field>
  278.                     <field-name>studentID</field-name>
  279.                     <column-name>studentID</column-name>
  280.                 </cmp-field>
  281.                 <cmp-field>
  282.                     <field-name>firstname</field-name>
  283.                     <column-name>firstname</column-name>
  284.                 </cmp-field>
  285.                 <cmp-field>
  286.                     <field-name>lastname</field-name>
  287.                     <column-name>lastname</column-name>
  288.                 </cmp-field>
  289.                 <table-name>student</table-name>
  290.             </cmp2-info>
  291.             <property>
  292.                 <prop-name>data-source-name</prop-name>
  293.                 <prop-type>String</prop-type>
  294.                 <prop-value>cmpDS</prop-value>
  295.             </property>
  296.             <property>
  297.                 <prop-name>ejb-designer-id</prop-name>
  298.                 <prop-type>String</prop-type>
  299.                 <prop-value>Student</prop-value>
  300.             </property>
  301.         </entity>
  302.     </enterprise-beans>
  303.     <table-properties>
  304.         <table-name>address</table-name>
  305.         <column-properties>
  306.             <column-name>addressID</column-name>
  307.         </column-properties>
  308.         <column-properties>
  309.             <column-name>street</column-name>
  310.         </column-properties>
  311.         <column-properties>
  312.             <column-name>city</column-name>
  313.         </column-properties>
  314.         <column-properties>
  315.             <column-name>zip</column-name>
  316.         </column-properties>
  317.         <column-properties>
  318.             <column-name>state</column-name>
  319.         </column-properties>
  320.         <column-properties>
  321.             <column-name>studentID</column-name>
  322.         </column-properties>
  323.         <property>
  324.             <prop-name>datasource</prop-name>
  325.             <prop-type>String</prop-type>
  326.             <prop-value>serial://datasources/cmpDS</prop-value>
  327.         </property>
  328.     </table-properties>
  329.     <table-properties>
  330.         <table-name>roster</table-name>
  331.         <column-properties>
  332.             <column-name>rosterID</column-name>
  333.         </column-properties>
  334.         <column-properties>
  335.             <column-name>studentID</column-name>
  336.         </column-properties>
  337.         <column-properties>
  338.             <column-name>scheduleID</column-name>
  339.         </column-properties>
  340.         <property>
  341.             <prop-name>datasource</prop-name>
  342.             <prop-type>String</prop-type>
  343.             <prop-value>serial://datasources/cmpDS</prop-value>
  344.         </property>
  345.     </table-properties>
  346.     <table-properties>
  347.         <table-name>student</table-name>
  348.         <column-properties>
  349.             <column-name>studentID</column-name>
  350.         </column-properties>
  351.         <column-properties>
  352.             <column-name>firstname</column-name>
  353.         </column-properties>
  354.         <column-properties>
  355.             <column-name>lastname</column-name>
  356.         </column-properties>
  357.         <property>
  358.             <prop-name>datasource</prop-name>
  359.             <prop-type>String</prop-type>
  360.             <prop-value>serial://datasources/cmpDS</prop-value>
  361.         </property>
  362.     </table-properties>
  363.     <relationships>
  364.         <ejb-relation>
  365.             <ejb-relationship-role>
  366.                 <relationship-role-source>
  367.                     <ejb-name>Student</ejb-name>
  368.                 </relationship-role-source>
  369.                 <cmr-field>
  370.                     <cmr-field-name>address</cmr-field-name>
  371.                     <table-ref>
  372.                         <left-table>
  373.                             <table-name>student</table-name>
  374.                             <column-list>
  375.                                 <column-name>studentID</column-name>
  376.                             </column-list>
  377.                         </left-table>
  378.                         <right-table>
  379.                             <table-name>address</table-name>
  380.                             <column-list>
  381.                                 <column-name>studentID</column-name>
  382.                             </column-list>
  383.                         </right-table>
  384.                     </table-ref>
  385.                 </cmr-field>
  386.             </ejb-relationship-role>
  387.             <ejb-relationship-role>
  388.                 <relationship-role-source>
  389.                     <ejb-name>Address</ejb-name>
  390.                 </relationship-role-source>
  391.             </ejb-relationship-role>
  392.         </ejb-relation>
  393.         <ejb-relation>
  394.             <ejb-relationship-role>
  395.                 <relationship-role-source>
  396.                     <ejb-name>Student</ejb-name>
  397.                 </relationship-role-source>
  398.                 <cmr-field>
  399.                     <cmr-field-name>roster</cmr-field-name>
  400.                     <table-ref>
  401.                         <left-table>
  402.                             <table-name>student</table-name>
  403.                             <column-list>
  404.                                 <column-name>studentID</column-name>
  405.                             </column-list>
  406.                         </left-table>
  407.                         <right-table>
  408.                             <table-name>roster</table-name>
  409.                             <column-list>
  410.                                 <column-name>studentID</column-name>
  411.                             </column-list>
  412.                         </right-table>
  413.                     </table-ref>
  414.                 </cmr-field>
  415.             </ejb-relationship-role>
  416.             <ejb-relationship-role>
  417.                 <relationship-role-source>
  418.                     <ejb-name>Roster</ejb-name>
  419.                 </relationship-role-source>
  420.             </ejb-relationship-role>
  421.         </ejb-relation>
  422.     </relationships>
  423.     <assembly-descriptor />
  424. </ejb-jar>]]></ejb-borland.xml>
  425.   <ejb-modeler-schema.xml extralocation="" timestamp="1055859912598"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  426. <schema-root-node name="DataSources" node-type="0" status="0">
  427.   <schema-connection-node name="cmpDS" node-type="4" status="0" catalog="null-object" connection-type="0" data-source-name="null-object" driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" file="null-object" password="sa" sql-schema="null-object" url="jdbc:microsoft:sqlserver://tsinghuacwj:1433;DatabaseName=cwj;User=sa;Password=sa" use-data-source="false" username="sa" all-schemas="true" all-views="false">
  428.     <schema-table-node name="address" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://tsinghuacwj:1433;DatabaseName=cwj;User=sa;Password=sa" sql-schema="null-object">
  429.       <schema-column-node name="addressID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="1" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  430.       <schema-column-node name="street" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="2" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  431.       <schema-column-node name="city" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="3" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  432.       <schema-column-node name="zip" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="4" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  433.       <schema-column-node name="state" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="5" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  434.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="6" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  435.     </schema-table-node>
  436.     <schema-table-node name="dtproperties" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://tsinghuacwj:1433;DatabaseName=cwj;User=sa;Password=sa" sql-schema="null-object">
  437.       <schema-column-node name="id" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.Integer" java-sql-type="4" ordinal="1" precision="-1" scale="-1" vendor-type-name="int identity" is-primary-key="true" />
  438.       <schema-column-node name="objectid" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.Integer" java-sql-type="4" ordinal="2" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  439.       <schema-column-node name="property" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="3" precision="64" scale="-1" vendor-type-name="varchar" is-primary-key="true" />
  440.       <schema-column-node name="value" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="4" precision="255" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  441.       <schema-column-node name="uvalue" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="5" precision="255" scale="-1" vendor-type-name="nvarchar" is-primary-key="false" />
  442.       <schema-column-node name="lvalue" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="byte[]" java-sql-type="-4" ordinal="6" precision="-1" scale="-1" vendor-type-name="image" is-primary-key="false" />
  443.       <schema-column-node name="version" node-type="2" status="0" col-default="(0)" is-nullable="NO " java-class="java.lang.Integer" java-sql-type="4" ordinal="7" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  444.     </schema-table-node>
  445.     <schema-table-node name="roster" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://tsinghuacwj:1433;DatabaseName=cwj;User=sa;Password=sa" sql-schema="null-object">
  446.       <schema-column-node name="rosterID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="1" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  447.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="2" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  448.       <schema-column-node name="scheduleID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="3" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  449.     </schema-table-node>
  450.     <schema-table-node name="student" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://tsinghuacwj:1433;DatabaseName=cwj;User=sa;Password=sa" sql-schema="null-object">
  451.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-class="java.lang.String" java-sql-type="12" ordinal="1" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  452.       <schema-column-node name="firstname" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="2" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  453.       <schema-column-node name="lastname" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-class="java.lang.String" java-sql-type="12" ordinal="3" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  454.     </schema-table-node>
  455.   </schema-connection-node>
  456. </schema-root-node>]]></ejb-modeler-schema.xml>
  457.   <ejb-modeler-layout.xml extralocation="" timestamp="1055859912598"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  458. <layout>
  459.   <view>
  460.     <name>Default</name>
  461.     <ejb>
  462.       <name>Student</name>
  463.       <x>244</x>
  464.       <y>39</y>
  465.       <width>130</width>
  466.       <height>353</height>
  467.     </ejb>
  468.     <ejb>
  469.       <name>Address</name>
  470.       <x>26</x>
  471.       <y>25</y>
  472.       <width>130</width>
  473.       <height>258</height>
  474.     </ejb>
  475.     <ejb>
  476.       <name>Roster</name>
  477.       <x>474</x>
  478.       <y>27</y>
  479.       <width>130</width>
  480.       <height>294</height>
  481.     </ejb>
  482.   </view>
  483. </layout>]]></ejb-modeler-layout.xml>
  484.   <weblogic-cmp-extras.xml extralocation="" timestamp="1055859912608"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  485. <weblogic-rdbms-jar>
  486.   <weblogic-rdbms-bean>
  487.     <ejb-name>Address</ejb-name>
  488.     <data-source-name>cmpDS</data-source-name>
  489.     <table-name>address</table-name>
  490.     <field-map>
  491.       <cmp-field>addressID</cmp-field>
  492.       <dbms-column>addressID</dbms-column>
  493.     </field-map>
  494.     <field-map>
  495.       <cmp-field>street</cmp-field>
  496.       <dbms-column>street</dbms-column>
  497.     </field-map>
  498.     <field-map>
  499.       <cmp-field>city</cmp-field>
  500.       <dbms-column>city</dbms-column>
  501.     </field-map>
  502.     <field-map>
  503.       <cmp-field>zip</cmp-field>
  504.       <dbms-column>zip</dbms-column>
  505.     </field-map>
  506.     <field-map>
  507.       <cmp-field>state</cmp-field>
  508.       <dbms-column>state</dbms-column>
  509.     </field-map>
  510.     <field-map>
  511.       <cmp-field>studentID</cmp-field>
  512.       <dbms-column>studentID</dbms-column>
  513.     </field-map>
  514.     <table-map>
  515.       <table-name>address</table-name>
  516.       <field-map>
  517.         <cmp-field>addressID</cmp-field>
  518.         <dbms-column>addressID</dbms-column>
  519.       </field-map>
  520.       <field-map>
  521.         <cmp-field>street</cmp-field>
  522.         <dbms-column>street</dbms-column>
  523.       </field-map>
  524.       <field-map>
  525.         <cmp-field>city</cmp-field>
  526.         <dbms-column>city</dbms-column>
  527.       </field-map>
  528.       <field-map>
  529.         <cmp-field>zip</cmp-field>
  530.         <dbms-column>zip</dbms-column>
  531.       </field-map>
  532.       <field-map>
  533.         <cmp-field>state</cmp-field>
  534.         <dbms-column>state</dbms-column>
  535.       </field-map>
  536.       <field-map>
  537.         <cmp-field>studentID</cmp-field>
  538.         <dbms-column>studentID</dbms-column>
  539.       </field-map>
  540.     </table-map>
  541.   </weblogic-rdbms-bean>
  542.   <weblogic-rdbms-bean>
  543.     <ejb-name>Roster</ejb-name>
  544.     <data-source-name>cmpDS</data-source-name>
  545.     <table-name>roster</table-name>
  546.     <field-map>
  547.       <cmp-field>rosterID</cmp-field>
  548.       <dbms-column>rosterID</dbms-column>
  549.     </field-map>
  550.     <field-map>
  551.       <cmp-field>studentID</cmp-field>
  552.       <dbms-column>studentID</dbms-column>
  553.     </field-map>
  554.     <field-map>
  555.       <cmp-field>scheduleID</cmp-field>
  556.       <dbms-column>scheduleID</dbms-column>
  557.     </field-map>
  558.     <table-map>
  559.       <table-name>roster</table-name>
  560.       <field-map>
  561.         <cmp-field>rosterID</cmp-field>
  562.         <dbms-column>rosterID</dbms-column>
  563.       </field-map>
  564.       <field-map>
  565.         <cmp-field>studentID</cmp-field>
  566.         <dbms-column>studentID</dbms-column>
  567.       </field-map>
  568.       <field-map>
  569.         <cmp-field>scheduleID</cmp-field>
  570.         <dbms-column>scheduleID</dbms-column>
  571.       </field-map>
  572.     </table-map>
  573.   </weblogic-rdbms-bean>
  574.   <weblogic-rdbms-bean>
  575.     <ejb-name>Student</ejb-name>
  576.     <data-source-name>cmpDS</data-source-name>
  577.     <table-name>student</table-name>
  578.     <field-map>
  579.       <cmp-field>studentID</cmp-field>
  580.       <dbms-column>studentID</dbms-column>
  581.     </field-map>
  582.     <field-map>
  583.       <cmp-field>firstname</cmp-field>
  584.       <dbms-column>firstname</dbms-column>
  585.     </field-map>
  586.     <field-map>
  587.       <cmp-field>lastname</cmp-field>
  588.       <dbms-column>lastname</dbms-column>
  589.     </field-map>
  590.     <table-map>
  591.       <table-name>student</table-name>
  592.       <field-map>
  593.         <cmp-field>studentID</cmp-field>
  594.         <dbms-column>studentID</dbms-column>
  595.       </field-map>
  596.       <field-map>
  597.         <cmp-field>firstname</cmp-field>
  598.         <dbms-column>firstname</dbms-column>
  599.       </field-map>
  600.       <field-map>
  601.         <cmp-field>lastname</cmp-field>
  602.         <dbms-column>lastname</dbms-column>
  603.       </field-map>
  604.     </table-map>
  605.   </weblogic-rdbms-bean>
  606.   <weblogic-rdbms-relation>
  607.     <relation-name>student-address</relation-name>
  608.     <weblogic-relationship-role>
  609.       <relationship-role-name>AddressRelationshipRole</relationship-role-name>
  610.       <column-map>
  611.         <foreign-key-column>studentID</foreign-key-column>
  612.         <key-column>studentID</key-column>
  613.       </column-map>
  614.       <relationship-role-map>
  615.         <foreign-key-table>address</foreign-key-table>
  616.         <primary-key-table>student</primary-key-table>
  617.         <column-map>
  618.           <foreign-key-column>studentID</foreign-key-column>
  619.           <key-column>studentID</key-column>
  620.         </column-map>
  621.       </relationship-role-map>
  622.     </weblogic-relationship-role>
  623.   </weblogic-rdbms-relation>
  624.   <weblogic-rdbms-relation>
  625.     <relation-name>student-roster</relation-name>
  626.     <weblogic-relationship-role>
  627.       <relationship-role-name>RosterRelationshipRole</relationship-role-name>
  628.       <column-map>
  629.         <foreign-key-column>studentID</foreign-key-column>
  630.         <key-column>studentID</key-column>
  631.       </column-map>
  632.       <relationship-role-map>
  633.         <foreign-key-table>roster</foreign-key-table>
  634.         <primary-key-table>student</primary-key-table>
  635.         <column-map>
  636.           <foreign-key-column>studentID</foreign-key-column>
  637.           <key-column>studentID</key-column>
  638.         </column-map>
  639.       </relationship-role-map>
  640.     </weblogic-relationship-role>
  641.   </weblogic-rdbms-relation>
  642. </weblogic-rdbms-jar>]]></weblogic-cmp-extras.xml>
  643.   <weblogic-ejb-jar.xml extralocation="" timestamp="1062145643617"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  644. <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
  645. <weblogic-ejb-jar>
  646.     <weblogic-enterprise-bean>
  647.         <ejb-name>Address</ejb-name>
  648.         <entity-descriptor>
  649.             <persistence>
  650.                 <persistence-use>
  651.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  652.                     <type-version>6.0</type-version>
  653.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  654.                 </persistence-use>
  655.             </persistence>
  656.         </entity-descriptor>
  657.         <local-jndi-name>Address</local-jndi-name>
  658.     </weblogic-enterprise-bean>
  659.     <weblogic-enterprise-bean>
  660.         <ejb-name>Roster</ejb-name>
  661.         <entity-descriptor>
  662.             <persistence>
  663.                 <persistence-use>
  664.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  665.                     <type-version>6.0</type-version>
  666.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  667.                 </persistence-use>
  668.             </persistence>
  669.         </entity-descriptor>
  670.         <local-jndi-name>Roster</local-jndi-name>
  671.     </weblogic-enterprise-bean>
  672.     <weblogic-enterprise-bean>
  673.         <ejb-name>Student</ejb-name>
  674.         <entity-descriptor>
  675.             <persistence>
  676.                 <persistence-use>
  677.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  678.                     <type-version>6.0</type-version>
  679.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  680.                 </persistence-use>
  681.             </persistence>
  682.         </entity-descriptor>
  683.         <local-jndi-name>Student</local-jndi-name>
  684.     </weblogic-enterprise-bean>
  685. </weblogic-ejb-jar>
  686. ]]></weblogic-ejb-jar.xml>
  687.   <weblogic-cmp-rdbms-jar.xml extralocation="" timestamp="1062145643657"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  688. <!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
  689. <weblogic-rdbms-jar>
  690.     <weblogic-rdbms-bean>
  691.         <ejb-name>Address</ejb-name>
  692.         <data-source-name>cmpDS</data-source-name>
  693.         <table-map>
  694.             <table-name>address</table-name>
  695.             <field-map>
  696.                 <cmp-field>addressID</cmp-field>
  697.                 <dbms-column>addressID</dbms-column>
  698.             </field-map>
  699.             <field-map>
  700.                 <cmp-field>street</cmp-field>
  701.                 <dbms-column>street</dbms-column>
  702.             </field-map>
  703.             <field-map>
  704.                 <cmp-field>city</cmp-field>
  705.                 <dbms-column>city</dbms-column>
  706.             </field-map>
  707.             <field-map>
  708.                 <cmp-field>zip</cmp-field>
  709.                 <dbms-column>zip</dbms-column>
  710.             </field-map>
  711.             <field-map>
  712.                 <cmp-field>state</cmp-field>
  713.                 <dbms-column>state</dbms-column>
  714.             </field-map>
  715.             <field-map>
  716.                 <cmp-field>studentID</cmp-field>
  717.                 <dbms-column>studentID</dbms-column>
  718.             </field-map>
  719.         </table-map>
  720.     </weblogic-rdbms-bean>
  721.     <weblogic-rdbms-bean>
  722.         <ejb-name>Roster</ejb-name>
  723.         <data-source-name>cmpDS</data-source-name>
  724.         <table-map>
  725.             <table-name>roster</table-name>
  726.             <field-map>
  727.                 <cmp-field>rosterID</cmp-field>
  728.                 <dbms-column>rosterID</dbms-column>
  729.             </field-map>
  730.             <field-map>
  731.                 <cmp-field>studentID</cmp-field>
  732.                 <dbms-column>studentID</dbms-column>
  733.             </field-map>
  734.             <field-map>
  735.                 <cmp-field>scheduleID</cmp-field>
  736.                 <dbms-column>scheduleID</dbms-column>
  737.             </field-map>
  738.         </table-map>
  739.     </weblogic-rdbms-bean>
  740.     <weblogic-rdbms-bean>
  741.         <ejb-name>Student</ejb-name>
  742.         <data-source-name>cmpDS</data-source-name>
  743.         <table-map>
  744.             <table-name>student</table-name>
  745.             <field-map>
  746.                 <cmp-field>studentID</cmp-field>
  747.                 <dbms-column>studentID</dbms-column>
  748.             </field-map>
  749.             <field-map>
  750.                 <cmp-field>firstname</cmp-field>
  751.                 <dbms-column>firstname</dbms-column>
  752.             </field-map>
  753.             <field-map>
  754.                 <cmp-field>lastname</cmp-field>
  755.                 <dbms-column>lastname</dbms-column>
  756.             </field-map>
  757.         </table-map>
  758.     </weblogic-rdbms-bean>
  759.     <weblogic-rdbms-relation>
  760.         <relation-name>student-address</relation-name>
  761.         <weblogic-relationship-role>
  762.             <relationship-role-name>AddressRelationshipRole</relationship-role-name>
  763.             <relationship-role-map>
  764.                 <primary-key-table>student</primary-key-table>
  765.                 <column-map>
  766.                     <foreign-key-column>studentID</foreign-key-column>
  767.                     <key-column>studentID</key-column>
  768.                 </column-map>
  769.             </relationship-role-map>
  770.         </weblogic-relationship-role>
  771.     </weblogic-rdbms-relation>
  772.     <weblogic-rdbms-relation>
  773.         <relation-name>student-roster</relation-name>
  774.         <weblogic-relationship-role>
  775.             <relationship-role-name>RosterRelationshipRole</relationship-role-name>
  776.             <relationship-role-map>
  777.                 <primary-key-table>student</primary-key-table>
  778.                 <column-map>
  779.                     <foreign-key-column>studentID</foreign-key-column>
  780.                     <key-column>studentID</key-column>
  781.                 </column-map>
  782.             </relationship-role-map>
  783.         </weblogic-relationship-role>
  784.     </weblogic-rdbms-relation>
  785. </weblogic-rdbms-jar>
  786. ]]></weblogic-cmp-rdbms-jar.xml>
  787. </descriptors>