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

Java编程

开发平台:

Java

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <descriptors>
  3.   <ejb-jar.xml extralocation="" timestamp="1062145738293"><![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>]]></ejb-jar.xml>
  198.   <ejb-borland.xml extralocation="" timestamp="1062145738293"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  199. <!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">
  200. <ejb-jar>
  201.     <enterprise-beans>
  202.         <entity>
  203.             <ejb-name>Address</ejb-name>
  204.             <bean-local-home-name>Address</bean-local-home-name>
  205.             <cmp2-info>
  206.                 <cmp-field>
  207.                     <field-name>addressID</field-name>
  208.                     <column-name>addressID</column-name>
  209.                 </cmp-field>
  210.                 <cmp-field>
  211.                     <field-name>street</field-name>
  212.                     <column-name>street</column-name>
  213.                 </cmp-field>
  214.                 <cmp-field>
  215.                     <field-name>city</field-name>
  216.                     <column-name>city</column-name>
  217.                 </cmp-field>
  218.                 <cmp-field>
  219.                     <field-name>zip</field-name>
  220.                     <column-name>zip</column-name>
  221.                 </cmp-field>
  222.                 <cmp-field>
  223.                     <field-name>state</field-name>
  224.                     <column-name>state</column-name>
  225.                 </cmp-field>
  226.                 <cmp-field>
  227.                     <field-name>studentID</field-name>
  228.                     <column-name>studentID</column-name>
  229.                 </cmp-field>
  230.                 <table-name>address</table-name>
  231.             </cmp2-info>
  232.             <property>
  233.                 <prop-name>data-source-name</prop-name>
  234.                 <prop-type>String</prop-type>
  235.                 <prop-value>cmpDS</prop-value>
  236.             </property>
  237.             <property>
  238.                 <prop-name>ejb-designer-id</prop-name>
  239.                 <prop-type>String</prop-type>
  240.                 <prop-value>Address</prop-value>
  241.             </property>
  242.         </entity>
  243.         <entity>
  244.             <ejb-name>Roster</ejb-name>
  245.             <bean-local-home-name>Roster</bean-local-home-name>
  246.             <cmp2-info>
  247.                 <cmp-field>
  248.                     <field-name>rosterID</field-name>
  249.                     <column-name>rosterID</column-name>
  250.                 </cmp-field>
  251.                 <cmp-field>
  252.                     <field-name>studentID</field-name>
  253.                     <column-name>studentID</column-name>
  254.                 </cmp-field>
  255.                 <cmp-field>
  256.                     <field-name>scheduleID</field-name>
  257.                     <column-name>scheduleID</column-name>
  258.                 </cmp-field>
  259.                 <table-name>roster</table-name>
  260.             </cmp2-info>
  261.             <property>
  262.                 <prop-name>data-source-name</prop-name>
  263.                 <prop-type>String</prop-type>
  264.                 <prop-value>cmpDS</prop-value>
  265.             </property>
  266.             <property>
  267.                 <prop-name>ejb-designer-id</prop-name>
  268.                 <prop-type>String</prop-type>
  269.                 <prop-value>Roster</prop-value>
  270.             </property>
  271.         </entity>
  272.         <entity>
  273.             <ejb-name>Student</ejb-name>
  274.             <bean-local-home-name>Student</bean-local-home-name>
  275.             <cmp2-info>
  276.                 <cmp-field>
  277.                     <field-name>studentID</field-name>
  278.                     <column-name>studentID</column-name>
  279.                 </cmp-field>
  280.                 <cmp-field>
  281.                     <field-name>firstname</field-name>
  282.                     <column-name>firstname</column-name>
  283.                 </cmp-field>
  284.                 <cmp-field>
  285.                     <field-name>lastname</field-name>
  286.                     <column-name>lastname</column-name>
  287.                 </cmp-field>
  288.                 <table-name>student</table-name>
  289.             </cmp2-info>
  290.             <property>
  291.                 <prop-name>data-source-name</prop-name>
  292.                 <prop-type>String</prop-type>
  293.                 <prop-value>cmpDS</prop-value>
  294.             </property>
  295.             <property>
  296.                 <prop-name>ejb-designer-id</prop-name>
  297.                 <prop-type>String</prop-type>
  298.                 <prop-value>Student</prop-value>
  299.             </property>
  300.         </entity>
  301.     </enterprise-beans>
  302.     <table-properties>
  303.         <table-name>address</table-name>
  304.         <column-properties>
  305.             <column-name>addressID</column-name>
  306.         </column-properties>
  307.         <column-properties>
  308.             <column-name>street</column-name>
  309.         </column-properties>
  310.         <column-properties>
  311.             <column-name>city</column-name>
  312.         </column-properties>
  313.         <column-properties>
  314.             <column-name>zip</column-name>
  315.         </column-properties>
  316.         <column-properties>
  317.             <column-name>state</column-name>
  318.         </column-properties>
  319.         <column-properties>
  320.             <column-name>studentID</column-name>
  321.         </column-properties>
  322.         <property>
  323.             <prop-name>datasource</prop-name>
  324.             <prop-type>String</prop-type>
  325.             <prop-value>serial://datasources/cmpDS</prop-value>
  326.         </property>
  327.     </table-properties>
  328.     <table-properties>
  329.         <table-name>roster</table-name>
  330.         <column-properties>
  331.             <column-name>rosterID</column-name>
  332.         </column-properties>
  333.         <column-properties>
  334.             <column-name>studentID</column-name>
  335.         </column-properties>
  336.         <column-properties>
  337.             <column-name>scheduleID</column-name>
  338.         </column-properties>
  339.         <property>
  340.             <prop-name>datasource</prop-name>
  341.             <prop-type>String</prop-type>
  342.             <prop-value>serial://datasources/cmpDS</prop-value>
  343.         </property>
  344.     </table-properties>
  345.     <table-properties>
  346.         <table-name>student</table-name>
  347.         <column-properties>
  348.             <column-name>studentID</column-name>
  349.         </column-properties>
  350.         <column-properties>
  351.             <column-name>firstname</column-name>
  352.         </column-properties>
  353.         <column-properties>
  354.             <column-name>lastname</column-name>
  355.         </column-properties>
  356.         <property>
  357.             <prop-name>datasource</prop-name>
  358.             <prop-type>String</prop-type>
  359.             <prop-value>serial://datasources/cmpDS</prop-value>
  360.         </property>
  361.     </table-properties>
  362.     <relationships>
  363.         <ejb-relation>
  364.             <ejb-relationship-role>
  365.                 <relationship-role-source>
  366.                     <ejb-name>Student</ejb-name>
  367.                 </relationship-role-source>
  368.                 <cmr-field>
  369.                     <cmr-field-name>address</cmr-field-name>
  370.                     <table-ref>
  371.                         <left-table>
  372.                             <table-name>student</table-name>
  373.                             <column-list>
  374.                                 <column-name>studentID</column-name>
  375.                             </column-list>
  376.                         </left-table>
  377.                         <right-table>
  378.                             <table-name>address</table-name>
  379.                             <column-list>
  380.                                 <column-name>studentID</column-name>
  381.                             </column-list>
  382.                         </right-table>
  383.                     </table-ref>
  384.                 </cmr-field>
  385.             </ejb-relationship-role>
  386.             <ejb-relationship-role>
  387.                 <relationship-role-source>
  388.                     <ejb-name>Address</ejb-name>
  389.                 </relationship-role-source>
  390.             </ejb-relationship-role>
  391.         </ejb-relation>
  392.         <ejb-relation>
  393.             <ejb-relationship-role>
  394.                 <relationship-role-source>
  395.                     <ejb-name>Student</ejb-name>
  396.                 </relationship-role-source>
  397.                 <cmr-field>
  398.                     <cmr-field-name>roster</cmr-field-name>
  399.                     <table-ref>
  400.                         <left-table>
  401.                             <table-name>student</table-name>
  402.                             <column-list>
  403.                                 <column-name>studentID</column-name>
  404.                             </column-list>
  405.                         </left-table>
  406.                         <right-table>
  407.                             <table-name>roster</table-name>
  408.                             <column-list>
  409.                                 <column-name>studentID</column-name>
  410.                             </column-list>
  411.                         </right-table>
  412.                     </table-ref>
  413.                 </cmr-field>
  414.             </ejb-relationship-role>
  415.             <ejb-relationship-role>
  416.                 <relationship-role-source>
  417.                     <ejb-name>Roster</ejb-name>
  418.                 </relationship-role-source>
  419.             </ejb-relationship-role>
  420.         </ejb-relation>
  421.     </relationships>
  422.     <assembly-descriptor />
  423. </ejb-jar>]]></ejb-borland.xml>
  424.   <ejb-modeler-schema.xml extralocation="" timestamp="1062145738172"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  425. <schema-root-node name="DataSources" node-type="0" status="0">
  426.   <schema-connection-node name="cmpDS" node-type="4" status="0" catalog="null-object" connection-type="1" data-source-name="" driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" file="null-object" password="sa" sql-schema="null-object" url="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" use-data-source="true" username="sa" all-schemas="true" all-views="false">
  427.     <schema-table-node name="address" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  428.       <schema-column-node name="addressID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  429.       <schema-column-node name="street" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="2" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  430.       <schema-column-node name="city" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="3" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  431.       <schema-column-node name="zip" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="4" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  432.       <schema-column-node name="state" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="5" precision="25" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  433.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="6" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  434.     </schema-table-node>
  435.     <schema-table-node name="CourseEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  436.       <schema-column-node name="ID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="10" scale="-1" vendor-type-name="varchar" is-primary-key="true" />
  437.       <schema-column-node name="Title" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="2" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  438.       <schema-column-node name="Price" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="3" ordinal="3" precision="10" scale="12" vendor-type-name="decimal" is-primary-key="false" />
  439.       <schema-column-node name="MaxNumber" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="4" ordinal="4" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  440.       <schema-column-node name="Description" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="5" precision="2000" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  441.     </schema-table-node>
  442.     <schema-table-node name="InstructorEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  443.       <schema-column-node name="InstructorID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="30" scale="-1" vendor-type-name="varchar" is-primary-key="true" />
  444.       <schema-column-node name="Password" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="2" precision="8" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  445.       <schema-column-node name="FirstName" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="3" precision="10" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  446.       <schema-column-node name="LastName" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="4" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  447.       <schema-column-node name="Email" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="5" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  448.       <schema-column-node name="Phone" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="6" precision="15" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  449.       <schema-column-node name="CertfiedToTeach" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="7" precision="80" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  450.       <schema-column-node name="CreateDate" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="93" ordinal="8" precision="-1" scale="-1" vendor-type-name="datetime" is-primary-key="false" />
  451.     </schema-table-node>
  452.     <schema-table-node name="LocationEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  453.       <schema-column-node name="ID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="true" />
  454.       <schema-column-node name="BizName" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="2" precision="60" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  455.       <schema-column-node name="BuildName" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="3" precision="40" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  456.       <schema-column-node name="Address" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="4" precision="80" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  457.       <schema-column-node name="City" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="5" precision="40" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  458.       <schema-column-node name="State" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="6" precision="5" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  459.       <schema-column-node name="Zip" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="4" ordinal="7" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  460.       <schema-column-node name="Country" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="8" precision="40" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  461.       <schema-column-node name="MainPhone" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="9" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  462.       <schema-column-node name="ContactPerson" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="10" precision="80" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  463.       <schema-column-node name="Email" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="11" precision="80" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  464.     </schema-table-node>
  465.     <schema-table-node name="roster" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  466.       <schema-column-node name="rosterID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  467.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="2" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  468.       <schema-column-node name="scheduleID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="3" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  469.     </schema-table-node>
  470.     <schema-table-node name="RosterEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  471.       <schema-column-node name="ScheduleId" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="12" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  472.       <schema-column-node name="StudentId" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="2" precision="30" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  473.       <schema-column-node name="RegistrationDate" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="93" ordinal="3" precision="-1" scale="-1" vendor-type-name="datetime" is-primary-key="false" />
  474.     </schema-table-node>
  475.     <schema-table-node name="ScheduleEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  476.       <schema-column-node name="SID" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="1" precision="12" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  477.       <schema-column-node name="CourseID" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="2" precision="8" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  478.       <schema-column-node name="StartDate" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="93" ordinal="3" precision="-1" scale="-1" vendor-type-name="datetime" is-primary-key="false" />
  479.       <schema-column-node name="EndDate" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="93" ordinal="4" precision="-1" scale="-1" vendor-type-name="datetime" is-primary-key="false" />
  480.       <schema-column-node name="LocationID" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="5" precision="12" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  481.       <schema-column-node name="MaxEnrollment" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="4" ordinal="6" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  482.       <schema-column-node name="CurrentEnrollment" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="4" ordinal="7" precision="-1" scale="-1" vendor-type-name="int" is-primary-key="false" />
  483.       <schema-column-node name="Status" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="8" precision="10" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  484.       <schema-column-node name="InstructorID" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="9" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  485.     </schema-table-node>
  486.     <schema-table-node name="student" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  487.       <schema-column-node name="studentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  488.       <schema-column-node name="firstname" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="2" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  489.       <schema-column-node name="lastname" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="3" precision="50" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  490.     </schema-table-node>
  491.     <schema-table-node name="StudentEJBTable" node-type="1" status="0" catalog="null-object" ref="false null com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=Regsystem;User=sa;Password=sa" sql-schema="null-object">
  492.       <schema-column-node name="StudentID" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="1" precision="30" scale="-1" vendor-type-name="varchar" is-primary-key="true" />
  493.       <schema-column-node name="Password" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="2" precision="8" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  494.       <schema-column-node name="FirstName" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="3" precision="10" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  495.       <schema-column-node name="LastName" node-type="2" status="0" col-default="null-object" is-nullable="NO " java-sql-type="12" ordinal="4" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  496.       <schema-column-node name="Email" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="5" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  497.       <schema-column-node name="Phone" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="6" precision="15" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  498.       <schema-column-node name="CompanyName" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="12" ordinal="7" precision="20" scale="-1" vendor-type-name="varchar" is-primary-key="false" />
  499.       <schema-column-node name="CreateDate" node-type="2" status="0" col-default="null-object" is-nullable="YES" java-sql-type="93" ordinal="8" precision="-1" scale="-1" vendor-type-name="datetime" is-primary-key="false" />
  500.     </schema-table-node>
  501.   </schema-connection-node>
  502. </schema-root-node>]]></ejb-modeler-schema.xml>
  503.   <ejb-modeler-layout.xml extralocation="" timestamp="1062145738243"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  504. <layout>
  505.   <view>
  506.     <name>Default</name>
  507.     <ejb>
  508.       <name>Student</name>
  509.       <x>244</x>
  510.       <y>39</y>
  511.       <width>130</width>
  512.       <height>353</height>
  513.     </ejb>
  514.     <ejb>
  515.       <name>Roster</name>
  516.       <x>474</x>
  517.       <y>27</y>
  518.       <width>130</width>
  519.       <height>294</height>
  520.     </ejb>
  521.     <ejb>
  522.       <name>Address</name>
  523.       <x>26</x>
  524.       <y>25</y>
  525.       <width>130</width>
  526.       <height>258</height>
  527.     </ejb>
  528.   </view>
  529. </layout>]]></ejb-modeler-layout.xml>
  530.   <weblogic-cmp-extras.xml extralocation="" timestamp="1062145738273"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  531. <weblogic-rdbms-jar>
  532.   <weblogic-rdbms-bean>
  533.     <ejb-name>Address</ejb-name>
  534.     <data-source-name>cmpDS</data-source-name>
  535.     <table-name>address</table-name>
  536.     <field-map>
  537.       <cmp-field>addressID</cmp-field>
  538.       <dbms-column>addressID</dbms-column>
  539.     </field-map>
  540.     <field-map>
  541.       <cmp-field>street</cmp-field>
  542.       <dbms-column>street</dbms-column>
  543.     </field-map>
  544.     <field-map>
  545.       <cmp-field>city</cmp-field>
  546.       <dbms-column>city</dbms-column>
  547.     </field-map>
  548.     <field-map>
  549.       <cmp-field>zip</cmp-field>
  550.       <dbms-column>zip</dbms-column>
  551.     </field-map>
  552.     <field-map>
  553.       <cmp-field>state</cmp-field>
  554.       <dbms-column>state</dbms-column>
  555.     </field-map>
  556.     <field-map>
  557.       <cmp-field>studentID</cmp-field>
  558.       <dbms-column>studentID</dbms-column>
  559.     </field-map>
  560.     <table-map>
  561.       <table-name>address</table-name>
  562.       <field-map>
  563.         <cmp-field>addressID</cmp-field>
  564.         <dbms-column>addressID</dbms-column>
  565.       </field-map>
  566.       <field-map>
  567.         <cmp-field>street</cmp-field>
  568.         <dbms-column>street</dbms-column>
  569.       </field-map>
  570.       <field-map>
  571.         <cmp-field>city</cmp-field>
  572.         <dbms-column>city</dbms-column>
  573.       </field-map>
  574.       <field-map>
  575.         <cmp-field>zip</cmp-field>
  576.         <dbms-column>zip</dbms-column>
  577.       </field-map>
  578.       <field-map>
  579.         <cmp-field>state</cmp-field>
  580.         <dbms-column>state</dbms-column>
  581.       </field-map>
  582.       <field-map>
  583.         <cmp-field>studentID</cmp-field>
  584.         <dbms-column>studentID</dbms-column>
  585.       </field-map>
  586.     </table-map>
  587.   </weblogic-rdbms-bean>
  588.   <weblogic-rdbms-bean>
  589.     <ejb-name>Roster</ejb-name>
  590.     <data-source-name>cmpDS</data-source-name>
  591.     <table-name>roster</table-name>
  592.     <field-map>
  593.       <cmp-field>rosterID</cmp-field>
  594.       <dbms-column>rosterID</dbms-column>
  595.     </field-map>
  596.     <field-map>
  597.       <cmp-field>studentID</cmp-field>
  598.       <dbms-column>studentID</dbms-column>
  599.     </field-map>
  600.     <field-map>
  601.       <cmp-field>scheduleID</cmp-field>
  602.       <dbms-column>scheduleID</dbms-column>
  603.     </field-map>
  604.     <table-map>
  605.       <table-name>roster</table-name>
  606.       <field-map>
  607.         <cmp-field>rosterID</cmp-field>
  608.         <dbms-column>rosterID</dbms-column>
  609.       </field-map>
  610.       <field-map>
  611.         <cmp-field>studentID</cmp-field>
  612.         <dbms-column>studentID</dbms-column>
  613.       </field-map>
  614.       <field-map>
  615.         <cmp-field>scheduleID</cmp-field>
  616.         <dbms-column>scheduleID</dbms-column>
  617.       </field-map>
  618.     </table-map>
  619.   </weblogic-rdbms-bean>
  620.   <weblogic-rdbms-bean>
  621.     <ejb-name>Student</ejb-name>
  622.     <data-source-name>cmpDS</data-source-name>
  623.     <table-name>student</table-name>
  624.     <field-map>
  625.       <cmp-field>studentID</cmp-field>
  626.       <dbms-column>studentID</dbms-column>
  627.     </field-map>
  628.     <field-map>
  629.       <cmp-field>firstname</cmp-field>
  630.       <dbms-column>firstname</dbms-column>
  631.     </field-map>
  632.     <field-map>
  633.       <cmp-field>lastname</cmp-field>
  634.       <dbms-column>lastname</dbms-column>
  635.     </field-map>
  636.     <table-map>
  637.       <table-name>student</table-name>
  638.       <field-map>
  639.         <cmp-field>studentID</cmp-field>
  640.         <dbms-column>studentID</dbms-column>
  641.       </field-map>
  642.       <field-map>
  643.         <cmp-field>firstname</cmp-field>
  644.         <dbms-column>firstname</dbms-column>
  645.       </field-map>
  646.       <field-map>
  647.         <cmp-field>lastname</cmp-field>
  648.         <dbms-column>lastname</dbms-column>
  649.       </field-map>
  650.     </table-map>
  651.   </weblogic-rdbms-bean>
  652.   <weblogic-rdbms-relation>
  653.     <relation-name>student-address</relation-name>
  654.     <weblogic-relationship-role>
  655.       <relationship-role-name>AddressRelationshipRole</relationship-role-name>
  656.       <column-map>
  657.         <foreign-key-column>studentID</foreign-key-column>
  658.         <key-column>studentID</key-column>
  659.       </column-map>
  660.       <relationship-role-map>
  661.         <foreign-key-table>address</foreign-key-table>
  662.         <primary-key-table>student</primary-key-table>
  663.         <column-map>
  664.           <foreign-key-column>studentID</foreign-key-column>
  665.           <key-column>studentID</key-column>
  666.         </column-map>
  667.       </relationship-role-map>
  668.     </weblogic-relationship-role>
  669.   </weblogic-rdbms-relation>
  670.   <weblogic-rdbms-relation>
  671.     <relation-name>student-roster</relation-name>
  672.     <weblogic-relationship-role>
  673.       <relationship-role-name>RosterRelationshipRole</relationship-role-name>
  674.       <column-map>
  675.         <foreign-key-column>studentID</foreign-key-column>
  676.         <key-column>studentID</key-column>
  677.       </column-map>
  678.       <relationship-role-map>
  679.         <foreign-key-table>roster</foreign-key-table>
  680.         <primary-key-table>student</primary-key-table>
  681.         <column-map>
  682.           <foreign-key-column>studentID</foreign-key-column>
  683.           <key-column>studentID</key-column>
  684.         </column-map>
  685.       </relationship-role-map>
  686.     </weblogic-relationship-role>
  687.   </weblogic-rdbms-relation>
  688. </weblogic-rdbms-jar>]]></weblogic-cmp-extras.xml>
  689.   <weblogic-ejb-jar.xml extralocation="" timestamp="1062145794053"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  690. <!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'>
  691. <weblogic-ejb-jar>
  692.     <weblogic-enterprise-bean>
  693.         <ejb-name>Address</ejb-name>
  694.         <entity-descriptor>
  695.             <persistence>
  696.                 <persistence-use>
  697.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  698.                     <type-version>6.0</type-version>
  699.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  700.                 </persistence-use>
  701.             </persistence>
  702.         </entity-descriptor>
  703.         <local-jndi-name>Address</local-jndi-name>
  704.     </weblogic-enterprise-bean>
  705.     <weblogic-enterprise-bean>
  706.         <ejb-name>Roster</ejb-name>
  707.         <entity-descriptor>
  708.             <persistence>
  709.                 <persistence-use>
  710.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  711.                     <type-version>6.0</type-version>
  712.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  713.                 </persistence-use>
  714.             </persistence>
  715.         </entity-descriptor>
  716.         <local-jndi-name>Roster</local-jndi-name>
  717.     </weblogic-enterprise-bean>
  718.     <weblogic-enterprise-bean>
  719.         <ejb-name>Student</ejb-name>
  720.         <entity-descriptor>
  721.             <persistence>
  722.                 <persistence-use>
  723.                     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
  724.                     <type-version>6.0</type-version>
  725.                     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
  726.                 </persistence-use>
  727.             </persistence>
  728.         </entity-descriptor>
  729.         <local-jndi-name>Student</local-jndi-name>
  730.     </weblogic-enterprise-bean>
  731. </weblogic-ejb-jar>
  732. ]]></weblogic-ejb-jar.xml>
  733.   <weblogic-cmp-rdbms-jar.xml extralocation="" timestamp="1062145794073"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  734. <!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'>
  735. <weblogic-rdbms-jar>
  736.     <weblogic-rdbms-bean>
  737.         <ejb-name>Address</ejb-name>
  738.         <data-source-name>cmpDS</data-source-name>
  739.         <table-map>
  740.             <table-name>address</table-name>
  741.             <field-map>
  742.                 <cmp-field>addressID</cmp-field>
  743.                 <dbms-column>addressID</dbms-column>
  744.             </field-map>
  745.             <field-map>
  746.                 <cmp-field>street</cmp-field>
  747.                 <dbms-column>street</dbms-column>
  748.             </field-map>
  749.             <field-map>
  750.                 <cmp-field>city</cmp-field>
  751.                 <dbms-column>city</dbms-column>
  752.             </field-map>
  753.             <field-map>
  754.                 <cmp-field>zip</cmp-field>
  755.                 <dbms-column>zip</dbms-column>
  756.             </field-map>
  757.             <field-map>
  758.                 <cmp-field>state</cmp-field>
  759.                 <dbms-column>state</dbms-column>
  760.             </field-map>
  761.             <field-map>
  762.                 <cmp-field>studentID</cmp-field>
  763.                 <dbms-column>studentID</dbms-column>
  764.             </field-map>
  765.         </table-map>
  766.     </weblogic-rdbms-bean>
  767.     <weblogic-rdbms-bean>
  768.         <ejb-name>Roster</ejb-name>
  769.         <data-source-name>cmpDS</data-source-name>
  770.         <table-map>
  771.             <table-name>roster</table-name>
  772.             <field-map>
  773.                 <cmp-field>rosterID</cmp-field>
  774.                 <dbms-column>rosterID</dbms-column>
  775.             </field-map>
  776.             <field-map>
  777.                 <cmp-field>studentID</cmp-field>
  778.                 <dbms-column>studentID</dbms-column>
  779.             </field-map>
  780.             <field-map>
  781.                 <cmp-field>scheduleID</cmp-field>
  782.                 <dbms-column>scheduleID</dbms-column>
  783.             </field-map>
  784.         </table-map>
  785.     </weblogic-rdbms-bean>
  786.     <weblogic-rdbms-bean>
  787.         <ejb-name>Student</ejb-name>
  788.         <data-source-name>cmpDS</data-source-name>
  789.         <table-map>
  790.             <table-name>student</table-name>
  791.             <field-map>
  792.                 <cmp-field>studentID</cmp-field>
  793.                 <dbms-column>studentID</dbms-column>
  794.             </field-map>
  795.             <field-map>
  796.                 <cmp-field>firstname</cmp-field>
  797.                 <dbms-column>firstname</dbms-column>
  798.             </field-map>
  799.             <field-map>
  800.                 <cmp-field>lastname</cmp-field>
  801.                 <dbms-column>lastname</dbms-column>
  802.             </field-map>
  803.         </table-map>
  804.     </weblogic-rdbms-bean>
  805.     <weblogic-rdbms-relation>
  806.         <relation-name>student-address</relation-name>
  807.         <weblogic-relationship-role>
  808.             <relationship-role-name>AddressRelationshipRole</relationship-role-name>
  809.             <relationship-role-map>
  810.                 <primary-key-table>student</primary-key-table>
  811.                 <column-map>
  812.                     <foreign-key-column>studentID</foreign-key-column>
  813.                     <key-column>studentID</key-column>
  814.                 </column-map>
  815.             </relationship-role-map>
  816.         </weblogic-relationship-role>
  817.     </weblogic-rdbms-relation>
  818.     <weblogic-rdbms-relation>
  819.         <relation-name>student-roster</relation-name>
  820.         <weblogic-relationship-role>
  821.             <relationship-role-name>RosterRelationshipRole</relationship-role-name>
  822.             <relationship-role-map>
  823.                 <primary-key-table>student</primary-key-table>
  824.                 <column-map>
  825.                     <foreign-key-column>studentID</foreign-key-column>
  826.                     <key-column>studentID</key-column>
  827.                 </column-map>
  828.             </relationship-role-map>
  829.         </weblogic-relationship-role>
  830.     </weblogic-rdbms-relation>
  831. </weblogic-rdbms-jar>
  832. ]]></weblogic-cmp-rdbms-jar.xml>
  833. </descriptors>