cmpJAR.ejbgrpx
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:44k
源码类别:
Java编程
开发平台:
Java
- <?xml version="1.0" encoding="UTF-8"?>
- <descriptors>
- <ejb-jar.xml extralocation="" timestamp="1062145738293"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
- <ejb-jar>
- <enterprise-beans>
- <entity>
- <display-name>Address</display-name>
- <ejb-name>Address</ejb-name>
- <local-home>cmpsample.AddressHome</local-home>
- <local>cmpsample.Address</local>
- <ejb-class>cmpsample.AddressBean</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>Address</abstract-schema-name>
- <cmp-field>
- <field-name>addressID</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>street</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>city</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>zip</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>state</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>studentID</field-name>
- </cmp-field>
- <primkey-field>addressID</primkey-field>
- </entity>
- <entity>
- <display-name>Roster</display-name>
- <ejb-name>Roster</ejb-name>
- <local-home>cmpsample.RosterHome</local-home>
- <local>cmpsample.Roster</local>
- <ejb-class>cmpsample.RosterBean</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>Roster</abstract-schema-name>
- <cmp-field>
- <field-name>rosterID</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>studentID</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>scheduleID</field-name>
- </cmp-field>
- <primkey-field>rosterID</primkey-field>
- <query>
- <query-method>
- <method-name>findByStudentID</method-name>
- <method-params>
- <method-param>java.lang.String</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(r) FROM Roster AS r WHERE r.studentID = ?1</ejb-ql>
- </query>
- <query>
- <query-method>
- <method-name>findByScheduleID</method-name>
- <method-params>
- <method-param>java.lang.String</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(r) FROM Roster AS r WHERE r.scheduleID = ?1</ejb-ql>
- </query>
- </entity>
- <entity>
- <display-name>Student</display-name>
- <ejb-name>Student</ejb-name>
- <local-home>cmpsample.StudentHome</local-home>
- <local>cmpsample.Student</local>
- <ejb-class>cmpsample.StudentBean</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>Student</abstract-schema-name>
- <cmp-field>
- <field-name>studentID</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>firstname</field-name>
- </cmp-field>
- <cmp-field>
- <field-name>lastname</field-name>
- </cmp-field>
- <primkey-field>studentID</primkey-field>
- <query>
- <query-method>
- <method-name>findByFirstName</method-name>
- <method-params>
- <method-param>java.lang.String</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(s) FROM Student AS s WHERE s.firstname = ?1</ejb-ql>
- </query>
- <query>
- <query-method>
- <method-name>findByLastName</method-name>
- <method-params>
- <method-param>java.lang.String</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(s) FROM Student AS s WHERE s.lastname = ?1</ejb-ql>
- </query>
- </entity>
- </enterprise-beans>
- <relationships>
- <ejb-relation>
- <ejb-relation-name>student-address</ejb-relation-name>
- <ejb-relationship-role>
- <description>student</description>
- <ejb-relationship-role-name>StudentRelationshipRole</ejb-relationship-role-name>
- <multiplicity>One</multiplicity>
- <relationship-role-source>
- <description>student</description>
- <ejb-name>Student</ejb-name>
- </relationship-role-source>
- <cmr-field>
- <description>address</description>
- <cmr-field-name>address</cmr-field-name>
- <cmr-field-type>java.util.Collection</cmr-field-type>
- </cmr-field>
- </ejb-relationship-role>
- <ejb-relationship-role>
- <description>address</description>
- <ejb-relationship-role-name>AddressRelationshipRole</ejb-relationship-role-name>
- <multiplicity>Many</multiplicity>
- <relationship-role-source>
- <description>address</description>
- <ejb-name>Address</ejb-name>
- </relationship-role-source>
- </ejb-relationship-role>
- </ejb-relation>
- <ejb-relation>
- <ejb-relation-name>student-roster</ejb-relation-name>
- <ejb-relationship-role>
- <description>student</description>
- <ejb-relationship-role-name>StudentRelationshipRole</ejb-relationship-role-name>
- <multiplicity>One</multiplicity>
- <relationship-role-source>
- <description>student</description>
- <ejb-name>Student</ejb-name>
- </relationship-role-source>
- <cmr-field>
- <description>roster</description>
- <cmr-field-name>roster</cmr-field-name>
- <cmr-field-type>java.util.Collection</cmr-field-type>
- </cmr-field>
- </ejb-relationship-role>
- <ejb-relationship-role>
- <description>roster</description>
- <ejb-relationship-role-name>RosterRelationshipRole</ejb-relationship-role-name>
- <multiplicity>Many</multiplicity>
- <relationship-role-source>
- <description>roster</description>
- <ejb-name>Roster</ejb-name>
- </relationship-role-source>
- </ejb-relationship-role>
- </ejb-relation>
- </relationships>
- <assembly-descriptor>
- <container-transaction>
- <method>
- <ejb-name>Roster</ejb-name>
- <method-name>*</method-name>
- </method>
- <trans-attribute>Required</trans-attribute>
- </container-transaction>
- <container-transaction>
- <method>
- <ejb-name>Student</ejb-name>
- <method-name>*</method-name>
- </method>
- <trans-attribute>Required</trans-attribute>
- </container-transaction>
- <container-transaction>
- <method>
- <description />
- <ejb-name>Address</ejb-name>
- <method-name>*</method-name>
- </method>
- <trans-attribute>Required</trans-attribute>
- </container-transaction>
- </assembly-descriptor>
- </ejb-jar>]]></ejb-jar.xml>
- <ejb-borland.xml extralocation="" timestamp="1062145738293"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <!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">
- <ejb-jar>
- <enterprise-beans>
- <entity>
- <ejb-name>Address</ejb-name>
- <bean-local-home-name>Address</bean-local-home-name>
- <cmp2-info>
- <cmp-field>
- <field-name>addressID</field-name>
- <column-name>addressID</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>street</field-name>
- <column-name>street</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>city</field-name>
- <column-name>city</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>zip</field-name>
- <column-name>zip</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>state</field-name>
- <column-name>state</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>studentID</field-name>
- <column-name>studentID</column-name>
- </cmp-field>
- <table-name>address</table-name>
- </cmp2-info>
- <property>
- <prop-name>data-source-name</prop-name>
- <prop-type>String</prop-type>
- <prop-value>cmpDS</prop-value>
- </property>
- <property>
- <prop-name>ejb-designer-id</prop-name>
- <prop-type>String</prop-type>
- <prop-value>Address</prop-value>
- </property>
- </entity>
- <entity>
- <ejb-name>Roster</ejb-name>
- <bean-local-home-name>Roster</bean-local-home-name>
- <cmp2-info>
- <cmp-field>
- <field-name>rosterID</field-name>
- <column-name>rosterID</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>studentID</field-name>
- <column-name>studentID</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>scheduleID</field-name>
- <column-name>scheduleID</column-name>
- </cmp-field>
- <table-name>roster</table-name>
- </cmp2-info>
- <property>
- <prop-name>data-source-name</prop-name>
- <prop-type>String</prop-type>
- <prop-value>cmpDS</prop-value>
- </property>
- <property>
- <prop-name>ejb-designer-id</prop-name>
- <prop-type>String</prop-type>
- <prop-value>Roster</prop-value>
- </property>
- </entity>
- <entity>
- <ejb-name>Student</ejb-name>
- <bean-local-home-name>Student</bean-local-home-name>
- <cmp2-info>
- <cmp-field>
- <field-name>studentID</field-name>
- <column-name>studentID</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>firstname</field-name>
- <column-name>firstname</column-name>
- </cmp-field>
- <cmp-field>
- <field-name>lastname</field-name>
- <column-name>lastname</column-name>
- </cmp-field>
- <table-name>student</table-name>
- </cmp2-info>
- <property>
- <prop-name>data-source-name</prop-name>
- <prop-type>String</prop-type>
- <prop-value>cmpDS</prop-value>
- </property>
- <property>
- <prop-name>ejb-designer-id</prop-name>
- <prop-type>String</prop-type>
- <prop-value>Student</prop-value>
- </property>
- </entity>
- </enterprise-beans>
- <table-properties>
- <table-name>address</table-name>
- <column-properties>
- <column-name>addressID</column-name>
- </column-properties>
- <column-properties>
- <column-name>street</column-name>
- </column-properties>
- <column-properties>
- <column-name>city</column-name>
- </column-properties>
- <column-properties>
- <column-name>zip</column-name>
- </column-properties>
- <column-properties>
- <column-name>state</column-name>
- </column-properties>
- <column-properties>
- <column-name>studentID</column-name>
- </column-properties>
- <property>
- <prop-name>datasource</prop-name>
- <prop-type>String</prop-type>
- <prop-value>serial://datasources/cmpDS</prop-value>
- </property>
- </table-properties>
- <table-properties>
- <table-name>roster</table-name>
- <column-properties>
- <column-name>rosterID</column-name>
- </column-properties>
- <column-properties>
- <column-name>studentID</column-name>
- </column-properties>
- <column-properties>
- <column-name>scheduleID</column-name>
- </column-properties>
- <property>
- <prop-name>datasource</prop-name>
- <prop-type>String</prop-type>
- <prop-value>serial://datasources/cmpDS</prop-value>
- </property>
- </table-properties>
- <table-properties>
- <table-name>student</table-name>
- <column-properties>
- <column-name>studentID</column-name>
- </column-properties>
- <column-properties>
- <column-name>firstname</column-name>
- </column-properties>
- <column-properties>
- <column-name>lastname</column-name>
- </column-properties>
- <property>
- <prop-name>datasource</prop-name>
- <prop-type>String</prop-type>
- <prop-value>serial://datasources/cmpDS</prop-value>
- </property>
- </table-properties>
- <relationships>
- <ejb-relation>
- <ejb-relationship-role>
- <relationship-role-source>
- <ejb-name>Student</ejb-name>
- </relationship-role-source>
- <cmr-field>
- <cmr-field-name>address</cmr-field-name>
- <table-ref>
- <left-table>
- <table-name>student</table-name>
- <column-list>
- <column-name>studentID</column-name>
- </column-list>
- </left-table>
- <right-table>
- <table-name>address</table-name>
- <column-list>
- <column-name>studentID</column-name>
- </column-list>
- </right-table>
- </table-ref>
- </cmr-field>
- </ejb-relationship-role>
- <ejb-relationship-role>
- <relationship-role-source>
- <ejb-name>Address</ejb-name>
- </relationship-role-source>
- </ejb-relationship-role>
- </ejb-relation>
- <ejb-relation>
- <ejb-relationship-role>
- <relationship-role-source>
- <ejb-name>Student</ejb-name>
- </relationship-role-source>
- <cmr-field>
- <cmr-field-name>roster</cmr-field-name>
- <table-ref>
- <left-table>
- <table-name>student</table-name>
- <column-list>
- <column-name>studentID</column-name>
- </column-list>
- </left-table>
- <right-table>
- <table-name>roster</table-name>
- <column-list>
- <column-name>studentID</column-name>
- </column-list>
- </right-table>
- </table-ref>
- </cmr-field>
- </ejb-relationship-role>
- <ejb-relationship-role>
- <relationship-role-source>
- <ejb-name>Roster</ejb-name>
- </relationship-role-source>
- </ejb-relationship-role>
- </ejb-relation>
- </relationships>
- <assembly-descriptor />
- </ejb-jar>]]></ejb-borland.xml>
- <ejb-modeler-schema.xml extralocation="" timestamp="1062145738172"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <schema-root-node name="DataSources" node-type="0" status="0">
- <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">
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- <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">
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </schema-table-node>
- </schema-connection-node>
- </schema-root-node>]]></ejb-modeler-schema.xml>
- <ejb-modeler-layout.xml extralocation="" timestamp="1062145738243"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <layout>
- <view>
- <name>Default</name>
- <ejb>
- <name>Student</name>
- <x>244</x>
- <y>39</y>
- <width>130</width>
- <height>353</height>
- </ejb>
- <ejb>
- <name>Roster</name>
- <x>474</x>
- <y>27</y>
- <width>130</width>
- <height>294</height>
- </ejb>
- <ejb>
- <name>Address</name>
- <x>26</x>
- <y>25</y>
- <width>130</width>
- <height>258</height>
- </ejb>
- </view>
- </layout>]]></ejb-modeler-layout.xml>
- <weblogic-cmp-extras.xml extralocation="" timestamp="1062145738273"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <weblogic-rdbms-jar>
- <weblogic-rdbms-bean>
- <ejb-name>Address</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-name>address</table-name>
- <field-map>
- <cmp-field>addressID</cmp-field>
- <dbms-column>addressID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>street</cmp-field>
- <dbms-column>street</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>city</cmp-field>
- <dbms-column>city</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>zip</cmp-field>
- <dbms-column>zip</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>state</cmp-field>
- <dbms-column>state</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <table-map>
- <table-name>address</table-name>
- <field-map>
- <cmp-field>addressID</cmp-field>
- <dbms-column>addressID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>street</cmp-field>
- <dbms-column>street</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>city</cmp-field>
- <dbms-column>city</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>zip</cmp-field>
- <dbms-column>zip</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>state</cmp-field>
- <dbms-column>state</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-bean>
- <ejb-name>Roster</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-name>roster</table-name>
- <field-map>
- <cmp-field>rosterID</cmp-field>
- <dbms-column>rosterID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>scheduleID</cmp-field>
- <dbms-column>scheduleID</dbms-column>
- </field-map>
- <table-map>
- <table-name>roster</table-name>
- <field-map>
- <cmp-field>rosterID</cmp-field>
- <dbms-column>rosterID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>scheduleID</cmp-field>
- <dbms-column>scheduleID</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-bean>
- <ejb-name>Student</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-name>student</table-name>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>firstname</cmp-field>
- <dbms-column>firstname</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>lastname</cmp-field>
- <dbms-column>lastname</dbms-column>
- </field-map>
- <table-map>
- <table-name>student</table-name>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>firstname</cmp-field>
- <dbms-column>firstname</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>lastname</cmp-field>
- <dbms-column>lastname</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-relation>
- <relation-name>student-address</relation-name>
- <weblogic-relationship-role>
- <relationship-role-name>AddressRelationshipRole</relationship-role-name>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- <relationship-role-map>
- <foreign-key-table>address</foreign-key-table>
- <primary-key-table>student</primary-key-table>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- </relationship-role-map>
- </weblogic-relationship-role>
- </weblogic-rdbms-relation>
- <weblogic-rdbms-relation>
- <relation-name>student-roster</relation-name>
- <weblogic-relationship-role>
- <relationship-role-name>RosterRelationshipRole</relationship-role-name>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- <relationship-role-map>
- <foreign-key-table>roster</foreign-key-table>
- <primary-key-table>student</primary-key-table>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- </relationship-role-map>
- </weblogic-relationship-role>
- </weblogic-rdbms-relation>
- </weblogic-rdbms-jar>]]></weblogic-cmp-extras.xml>
- <weblogic-ejb-jar.xml extralocation="" timestamp="1062145794053"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <!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'>
- <weblogic-ejb-jar>
- <weblogic-enterprise-bean>
- <ejb-name>Address</ejb-name>
- <entity-descriptor>
- <persistence>
- <persistence-use>
- <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
- <type-version>6.0</type-version>
- <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
- </persistence-use>
- </persistence>
- </entity-descriptor>
- <local-jndi-name>Address</local-jndi-name>
- </weblogic-enterprise-bean>
- <weblogic-enterprise-bean>
- <ejb-name>Roster</ejb-name>
- <entity-descriptor>
- <persistence>
- <persistence-use>
- <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
- <type-version>6.0</type-version>
- <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
- </persistence-use>
- </persistence>
- </entity-descriptor>
- <local-jndi-name>Roster</local-jndi-name>
- </weblogic-enterprise-bean>
- <weblogic-enterprise-bean>
- <ejb-name>Student</ejb-name>
- <entity-descriptor>
- <persistence>
- <persistence-use>
- <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
- <type-version>6.0</type-version>
- <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
- </persistence-use>
- </persistence>
- </entity-descriptor>
- <local-jndi-name>Student</local-jndi-name>
- </weblogic-enterprise-bean>
- </weblogic-ejb-jar>
- ]]></weblogic-ejb-jar.xml>
- <weblogic-cmp-rdbms-jar.xml extralocation="" timestamp="1062145794073"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <!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'>
- <weblogic-rdbms-jar>
- <weblogic-rdbms-bean>
- <ejb-name>Address</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-map>
- <table-name>address</table-name>
- <field-map>
- <cmp-field>addressID</cmp-field>
- <dbms-column>addressID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>street</cmp-field>
- <dbms-column>street</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>city</cmp-field>
- <dbms-column>city</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>zip</cmp-field>
- <dbms-column>zip</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>state</cmp-field>
- <dbms-column>state</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-bean>
- <ejb-name>Roster</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-map>
- <table-name>roster</table-name>
- <field-map>
- <cmp-field>rosterID</cmp-field>
- <dbms-column>rosterID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>scheduleID</cmp-field>
- <dbms-column>scheduleID</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-bean>
- <ejb-name>Student</ejb-name>
- <data-source-name>cmpDS</data-source-name>
- <table-map>
- <table-name>student</table-name>
- <field-map>
- <cmp-field>studentID</cmp-field>
- <dbms-column>studentID</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>firstname</cmp-field>
- <dbms-column>firstname</dbms-column>
- </field-map>
- <field-map>
- <cmp-field>lastname</cmp-field>
- <dbms-column>lastname</dbms-column>
- </field-map>
- </table-map>
- </weblogic-rdbms-bean>
- <weblogic-rdbms-relation>
- <relation-name>student-address</relation-name>
- <weblogic-relationship-role>
- <relationship-role-name>AddressRelationshipRole</relationship-role-name>
- <relationship-role-map>
- <primary-key-table>student</primary-key-table>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- </relationship-role-map>
- </weblogic-relationship-role>
- </weblogic-rdbms-relation>
- <weblogic-rdbms-relation>
- <relation-name>student-roster</relation-name>
- <weblogic-relationship-role>
- <relationship-role-name>RosterRelationshipRole</relationship-role-name>
- <relationship-role-map>
- <primary-key-table>student</primary-key-table>
- <column-map>
- <foreign-key-column>studentID</foreign-key-column>
- <key-column>studentID</key-column>
- </column-map>
- </relationship-role-map>
- </weblogic-relationship-role>
- </weblogic-rdbms-relation>
- </weblogic-rdbms-jar>
- ]]></weblogic-cmp-rdbms-jar.xml>
- </descriptors>