blob: 2083219b8f05d1ac6454f9c50f78d9b2cd67b1ff [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 EJB 2.1//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_1-0.dtd">
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<sun-ejb-jar>
<enterprise-beans>
<name>TeamJAR</name>
<unique-id>973984282</unique-id>
<ejb>
<ejb-name>LeagueEJB</ejb-name>
<jndi-name>LeagueEJB1Ext</jndi-name>
</ejb>
<ejb>
<ejb-name>PlayerEJB</ejb-name>
<jndi-name>PlayerEJB1Ext</jndi-name>
</ejb>
<ejb>
<ejb-name>TeamEJB</ejb-name>
<jndi-name>TeamEJB1Ext</jndi-name>
</ejb>
<cmp-resource>
<jndi-name>jdo/pmf</jndi-name>
<create-tables-at-deploy>true</create-tables-at-deploy>
<drop-tables-at-undeploy>true</drop-tables-at-undeploy>
<schema-generator-properties>
<!-- Test that unique names can be generated. -->
<property>
<name>use-unique-table-names</name>
<value>true</value>
</property>
<!-- This is setting the PK field to be null, but the resulting -->
<!-- column must NOT be nullable. -->
<property>
<name>TeamEJB.teamId.jdbc-nullable</name>
<value>true</value>
</property>
<!-- Map TeamEJB.city to a 'char(30) not null' column. -->
<property>
<name>TeamEJB.city.jdbc-type</name>
<value>char</value>
</property>
<property>
<name>TeamEJB.city.jdbc-maximum-length</name>
<value>30</value>
</property>
<property>
<name>TeamEJB.city.jdbc-nullable</name>
<value>false</value>
</property>
<!-- Map TeamEJB.name to a 'varchar(120)' column. -->
<!-- Capitalization should not matter; VARCHAR is same as varchar -->
<property>
<name>TeamEJB.name.jdbc-type</name>
<value>VARCHAR</value>
</property>
<property>
<name>TeamEJB.name.jdbc-maximum-length</name>
<value>120</value>
</property>
<!-- Map PlayerEJB.position to a 'varchar(15) null' column. -->
<property>
<name>PlayerEJB.position.jdbc-type</name>
<value>varchar</value>
</property>
<property>
<name>PlayerEJB.position.jdbc-maximum-length</name>
<value>15</value>
</property>
<property>
<name>PlayerEJB.position.jdbc-nullable</name>
<value>true</value>
</property>
<!-- Even strange capitalization should not matter! -->
<property>
<name>PlayerEJB.name.jdbc-type</name>
<value>cHaR</value>
</property>
<property>
<name>PlayerEJB.name.jdbc-maximum-length</name>
<value>64</value>
</property>
<!-- Ensure that precision & scale work. -->
<!-- Even strange capitalization should not matter! -->
<property>
<name>PlayerEJB.salary.jdbc-type</name>
<value>decIMAL</value>
</property>
<property>
<name>PlayerEJB.salary.jdbc-precision</name>
<value>10</value>
</property>
<property>
<name>PlayerEJB.salary.jdbc-scale</name>
<value>2</value>
</property>
</schema-generator-properties>
</cmp-resource>
</enterprise-beans>
</sun-ejb-jar>