| <?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>LeagueEJB2</ejb-name> |
| <jndi-name>LeagueEJB2Ext</jndi-name> |
| </ejb> |
| <ejb> |
| <ejb-name>PlayerEJB2</ejb-name> |
| <jndi-name>PlayerEJB2Ext</jndi-name> |
| </ejb> |
| <ejb> |
| <ejb-name>TeamEJB2</ejb-name> |
| <jndi-name>TeamEJB2Ext</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>TeamEJB2.teamId.jdbc-nullable</name> |
| <value>true</value> |
| </property> |
| <!-- Map TeamEJB2.city to a 'char(30) not null' column. --> |
| <property> |
| <name>TeamEJB2.city.jdbc-type</name> |
| <value>char</value> |
| </property> |
| <property> |
| <name>TeamEJB2.city.jdbc-maximum-length</name> |
| <value>30</value> |
| </property> |
| <property> |
| <name>TeamEJB2.city.jdbc-nullable</name> |
| <value>false</value> |
| </property> |
| <!-- Map TeamEJB2.name to a 'varchar(120)' column. --> |
| <!-- Capitalization should not matter; VARCHAR is same as varchar --> |
| <property> |
| <name>TeamEJB2.name.jdbc-type</name> |
| <value>VARCHAR</value> |
| </property> |
| <property> |
| <name>TeamEJB2.name.jdbc-maximum-length</name> |
| <value>120</value> |
| </property> |
| <!-- Map PlayerEJB2.position to a 'varchar(15) null' column. --> |
| <property> |
| <name>PlayerEJB2.position.jdbc-type</name> |
| <value>varchar</value> |
| </property> |
| <property> |
| <name>PlayerEJB2.position.jdbc-maximum-length</name> |
| <value>15</value> |
| </property> |
| <property> |
| <name>PlayerEJB2.position.jdbc-nullable</name> |
| <value>true</value> |
| </property> |
| <!-- Even strange capitalization should not matter! --> |
| <property> |
| <name>PlayerEJB2.name.jdbc-type</name> |
| <value>cHaR</value> |
| </property> |
| <property> |
| <name>PlayerEJB2.name.jdbc-maximum-length</name> |
| <value>64</value> |
| </property> |
| <!-- Ensure that precision & scale work. --> |
| <!-- Even strange capitalization should not matter! --> |
| <property> |
| <name>PlayerEJB2.salary.jdbc-type</name> |
| <value>decIMAL</value> |
| </property> |
| <property> |
| <name>PlayerEJB2.salary.jdbc-precision</name> |
| <value>10</value> |
| </property> |
| <property> |
| <name>PlayerEJB2.salary.jdbc-scale</name> |
| <value>2</value> |
| </property> |
| </schema-generator-properties> |
| </cmp-resource> |
| </enterprise-beans> |
| </sun-ejb-jar> |