View | Details | Raw Unified | Return to bug 211797
Collapse All | Expand All

(-)foundation/eclipselink.core.test/build.properties (-1 / +2 lines)
Lines 12-17 Link Here
12
eclipselink.core.test=.
12
eclipselink.core.test=.
13
eclipselink.core=../eclipselink.core
13
eclipselink.core=../eclipselink.core
14
14
15
run.dir=run
15
classes.dir=classes
16
classes.dir=classes
16
src.dir=src
17
src.dir=src
17
resource.dir=resource
18
resource.dir=resource
Lines 21-27 Link Here
21
db.password=tiger
22
db.password=tiger
22
db.url=jdbc:oracle:thin:@localhost:1521:ORCL
23
db.url=jdbc:oracle:thin:@localhost:1521:ORCL
23
db.driver=oracle.jdbc.driver.OracleDriver
24
db.driver=oracle.jdbc.driver.OracleDriver
24
db.platform=org.eclipse.persistence.platform.database.oracle.Oracle9Platform
25
db.platform=org.eclipse.persistence.platform.database.oracle.OraclePlatform
25
eclipselink.logging.boolvalue=true
26
eclipselink.logging.boolvalue=true
26
eclipselink.log.level=info
27
eclipselink.log.level=info
27
28
(-)foundation/eclipselink.core.test/build.xml (-3 / +3 lines)
Lines 43-56 Link Here
43
        <filter token="loglevel" value="${eclipselink.log.level}"/>
43
        <filter token="loglevel" value="${eclipselink.log.level}"/>
44
        <filter token="boolvalue" value="${eclipselink.logging.boolvalue}"/>
44
        <filter token="boolvalue" value="${eclipselink.logging.boolvalue}"/>
45
        <filter token="dbPlatform" value="${db.platform}"/>
45
        <filter token="dbPlatform" value="${db.platform}"/>
46
        <copy todir="${eclipselink.core.test}/${classes.dir}" filtering="true">
46
        <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true">
47
            <fileset dir="${eclipselink.core.test}/${resource.dir}"
47
            <fileset dir="${eclipselink.core.test}/${resource.dir}"
48
                excludes="**/Employee_utf16.xml, **/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
48
                excludes="**/Employee_utf16.xml, **/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
49
         </copy>
49
         </copy>
50
         <copy todir="${eclipselink.core.test}/${classes.dir}" filtering="true" encoding="UTF-16">
50
         <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="UTF-16">
51
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/Employee_utf16.xml"/>
51
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/Employee_utf16.xml"/>
52
         </copy>
52
         </copy>
53
          <copy todir="${eclipselink.core.test}/${classes.dir}" filtering="true" encoding="Shift_JIS">
53
          <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="Shift_JIS">
54
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
54
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
55
         </copy>
55
         </copy>
56
    </target>
56
    </target>
(-)foundation/eclipselink.core.test/resource/org/eclipse/persistence/testing/models/employee/eis/xmlfile/employee-ns.xsd (+72 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!-- Employee schema -->
3
<xsd:schema targetNamespace="http://xmlns.oracle.com/ias/xsds/employee" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:myns="http://xmlns.oracle.com/ias/xsds/employee" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
	<xsd:element name="EMPLOYEE" type="myns:EMPLOYEE"/>
5
	<xsd:element name="PROJECT" type="myns:PROJECT"/>
6
	<xsd:complexType name="EMPLOYEE">
7
		<xsd:sequence>
8
			<xsd:element name="EMP_ID" type="xsd:integer"/>
9
			<xsd:element name="F_NAME" type="xsd:string"/>
10
			<xsd:element name="L_NAME" type="xsd:string"/>
11
			<xsd:element name="SALARY" type="xsd:decimal"/>
12
			<xsd:element name="GENDER" type="xsd:string"/>
13
			<xsd:element name="START_TIME" type="xsd:time"/>
14
			<xsd:element name="END_TIME" type="xsd:time"/>				
15
			<xsd:element name="PERIOD">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="END_DATE" type="xsd:date"/>
19
						<xsd:element name="START_DATE" type="xsd:date"/>
20
					</xsd:sequence>
21
				</xsd:complexType>
22
			</xsd:element>
23
			<xsd:element name="RESPONS" type="xsd:string" maxOccurs="unbounded"/>
24
			<xsd:element name="ADDRESS">
25
				<xsd:complexType>
26
					<xsd:sequence>
27
						<xsd:element name="ADDRESS_ID" type="xsd:integer"/>
28
						<xsd:element name="STREET" type="xsd:string"/>
29
						<xsd:element name="CITY" type="xsd:string"/>
30
						<xsd:element name="PROVINCE" type="xsd:string"/>
31
						<xsd:element name="COUNTRY" type="xsd:string"/>
32
						<xsd:element name="P_CODE" type="xsd:string"/>
33
					</xsd:sequence>
34
				</xsd:complexType>
35
			</xsd:element>
36
			<xsd:element name="MANAGER_ID" type="xsd:integer"/>
37
			<xsd:element name="PHONES">
38
				<xsd:complexType>
39
					<xsd:sequence>
40
						<xsd:element name="PHONE" maxOccurs="unbounded">
41
							<xsd:complexType>
42
								<xsd:sequence>
43
									<xsd:element name="AREA_CODE" type="xsd:integer"/>
44
									<xsd:element name="P_NUMBER" type="xsd:integer"/>
45
								</xsd:sequence>
46
								<xsd:attribute name="TYPE" type="xsd:string"/>
47
							</xsd:complexType>
48
						</xsd:element>
49
					</xsd:sequence>
50
				</xsd:complexType>
51
			</xsd:element>
52
			<xsd:element name="PROJECTS">
53
				<xsd:complexType>
54
					<xsd:sequence>
55
						<xsd:element name="PROJ_ID" type="xsd:integer" maxOccurs="unbounded"/>
56
					</xsd:sequence>
57
				</xsd:complexType>
58
			</xsd:element>
59
		</xsd:sequence>
60
	</xsd:complexType>	
61
	<xsd:complexType name="PROJECT">
62
		<xsd:sequence>
63
			<xsd:element name="PROJ_ID" type="xsd:integer"/>
64
			<xsd:element name="PROJ_NAME" type="xsd:string"/>
65
			<xsd:element name="DESCRIP" type="xsd:string"/>
66
			<xsd:element name="LEADER_ID" type="xsd:integer"/>
67
			<xsd:element name="BUDGET" type="xsd:decimal"/>
68
			<xsd:element name="MILESTONE" type="xsd:dateTime"/>
69
		</xsd:sequence>
70
		<xsd:attribute name="TYPE" type="xsd:string"/>
71
	</xsd:complexType>	
72
</xsd:schema>
(-)foundation/eclipselink.core.test/resource/org/eclipse/persistence/testing/models/employee/eis/xmlfile/employee.xsd (+72 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!-- Employee schema -->
3
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
	<xsd:element name="EMPLOYEE" type="EMPLOYEE"/>
5
	<xsd:element name="PROJECT" type="PROJECT"/>
6
	<xsd:complexType name="EMPLOYEE">
7
		<xsd:sequence>
8
			<xsd:element name="EMP_ID" type="xsd:integer"/>
9
			<xsd:element name="F_NAME" type="xsd:string"/>
10
			<xsd:element name="L_NAME" type="xsd:string"/>
11
			<xsd:element name="SALARY" type="xsd:decimal"/>
12
			<xsd:element name="GENDER" type="xsd:string"/>
13
			<xsd:element name="START_TIME" type="xsd:time"/>
14
			<xsd:element name="END_TIME" type="xsd:time"/>				
15
			<xsd:element name="PERIOD">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="END_DATE" type="xsd:date"/>
19
						<xsd:element name="START_DATE" type="xsd:date"/>
20
					</xsd:sequence>
21
				</xsd:complexType>
22
			</xsd:element>
23
			<xsd:element name="RESPONS" type="xsd:string" maxOccurs="unbounded"/>
24
			<xsd:element name="ADDRESS">
25
				<xsd:complexType>
26
					<xsd:sequence>
27
						<xsd:element name="ADDRESS_ID" type="xsd:integer"/>
28
						<xsd:element name="STREET" type="xsd:string"/>
29
						<xsd:element name="CITY" type="xsd:string"/>
30
						<xsd:element name="PROVINCE" type="xsd:string"/>
31
						<xsd:element name="COUNTRY" type="xsd:string"/>
32
						<xsd:element name="P_CODE" type="xsd:string"/>
33
					</xsd:sequence>
34
				</xsd:complexType>
35
			</xsd:element>
36
			<xsd:element name="MANAGER_ID" type="xsd:integer"/>
37
			<xsd:element name="PHONES">
38
				<xsd:complexType>
39
					<xsd:sequence>
40
						<xsd:element name="PHONE" maxOccurs="unbounded">
41
							<xsd:complexType>
42
								<xsd:sequence>
43
									<xsd:element name="AREA_CODE" type="xsd:integer"/>
44
									<xsd:element name="P_NUMBER" type="xsd:integer"/>
45
								</xsd:sequence>
46
								<xsd:attribute name="TYPE" type="xsd:string"/>
47
							</xsd:complexType>
48
						</xsd:element>
49
					</xsd:sequence>
50
				</xsd:complexType>
51
			</xsd:element>
52
			<xsd:element name="PROJECTS">
53
				<xsd:complexType>
54
					<xsd:sequence>
55
						<xsd:element name="PROJ_ID" type="xsd:integer" maxOccurs="unbounded"/>
56
					</xsd:sequence>
57
				</xsd:complexType>
58
			</xsd:element>
59
		</xsd:sequence>
60
	</xsd:complexType>	
61
	<xsd:complexType name="PROJECT">
62
		<xsd:sequence>
63
			<xsd:element name="PROJ_ID" type="xsd:integer"/>
64
			<xsd:element name="PROJ_NAME" type="xsd:string"/>
65
			<xsd:element name="DESCRIP" type="xsd:string"/>
66
			<xsd:element name="LEADER_ID" type="xsd:integer"/>
67
			<xsd:element name="BUDGET" type="xsd:decimal"/>
68
			<xsd:element name="MILESTONE" type="xsd:dateTime"/>
69
		</xsd:sequence>
70
		<xsd:attribute name="TYPE" type="xsd:string"/>
71
	</xsd:complexType>	
72
</xsd:schema>
(-)foundation/eclipselink.core.test/resource/org/eclipse/persistence/testing/models/insurance/insurance.xml (-1 / +1 lines)
Lines 589-595 Link Here
589
      </eclipselink:class-mapping-descriptor>
589
      </eclipselink:class-mapping-descriptor>
590
   </eclipselink:class-mapping-descriptors>
590
   </eclipselink:class-mapping-descriptors>
591
   <eclipselink:login xsi:type="eclipselink:database-login">
591
   <eclipselink:login xsi:type="eclipselink:database-login">
592
      <eclipselink:platform-class>org.eclipse.persistence.platform.database.oracle.Oracle10Platform</eclipselink:platform-class>
592
      <eclipselink:platform-class>org.eclipse.persistence.platform.database.oracle.OraclePlatform</eclipselink:platform-class>
593
      <eclipselink:user-name>jsutherl</eclipselink:user-name>
593
      <eclipselink:user-name>jsutherl</eclipselink:user-name>
594
      <eclipselink:driver-class>oracle.jdbc.OracleDriver</eclipselink:driver-class>
594
      <eclipselink:driver-class>oracle.jdbc.OracleDriver</eclipselink:driver-class>
595
      <eclipselink:connection-url>jdbc:oracle:thin:@tlsvrdb3.ca.oracle.com:1521:toplink</eclipselink:connection-url>
595
      <eclipselink:connection-url>jdbc:oracle:thin:@tlsvrdb3.ca.oracle.com:1521:toplink</eclipselink:connection-url>
(-)foundation/eclipselink.core.test/resource/org/eclipse/persistence/testing/models/order/eis/aq/order.xsd (+30 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!-- Orders schema -->
3
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
	<xsd:element name="order">
5
		<xsd:complexType>
6
			<xsd:sequence>
7
				<xsd:element name="address">
8
					<xsd:complexType>
9
						<xsd:attribute name="addressee" type="xsd:string"/>
10
						<xsd:attribute name="street" type="xsd:string"/>
11
						<xsd:attribute name="city" type="xsd:string"/>
12
						<xsd:attribute name="zip" type="xsd:string"/>
13
						<xsd:attribute name="state" type="xsd:string"/>
14
						<xsd:attribute name="country" type="xsd:string"/>
15
					</xsd:complexType>
16
				</xsd:element>
17
				<xsd:element name="line-item" maxOccurs="unbounded">
18
					<xsd:complexType>
19
						<xsd:attribute name="number" type="xsd:integer"/>
20
						<xsd:attribute name="name" type="xsd:string"/>
21
						<xsd:attribute name="quanity" type="xsd:integer"/>
22
						<xsd:attribute name="price" type="xsd:double"/>
23
					</xsd:complexType>
24
				</xsd:element>
25
			</xsd:sequence>				
26
			<xsd:attribute name="id" type="xsd:integer"/>
27
			<xsd:attribute name="ordered-by" type="xsd:string"/>
28
		</xsd:complexType>
29
	</xsd:element>
30
</xsd:schema>
(-)foundation/eclipselink.core.test/resource/org/eclipse/persistence/testing/models/order/eis/xmlfile/order.xsd (+30 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!-- Orders schema -->
3
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
	<xsd:element name="order">
5
		<xsd:complexType>
6
			<xsd:sequence>
7
				<xsd:element name="address">
8
					<xsd:complexType>
9
						<xsd:attribute name="addressee" type="xsd:string"/>
10
						<xsd:attribute name="street" type="xsd:string"/>
11
						<xsd:attribute name="city" type="xsd:string"/>
12
						<xsd:attribute name="zip" type="xsd:string"/>
13
						<xsd:attribute name="state" type="xsd:string"/>
14
						<xsd:attribute name="country" type="xsd:string"/>
15
					</xsd:complexType>
16
				</xsd:element>
17
				<xsd:element name="line-item" maxOccurs="unbounded">
18
					<xsd:complexType>
19
						<xsd:attribute name="number" type="xsd:integer"/>
20
						<xsd:attribute name="name" type="xsd:string"/>
21
						<xsd:attribute name="quanity" type="xsd:integer"/>
22
						<xsd:attribute name="price" type="xsd:double"/>
23
					</xsd:complexType>
24
				</xsd:element>
25
			</xsd:sequence>				
26
			<xsd:attribute name="id" type="xsd:integer"/>
27
			<xsd:attribute name="ordered-by" type="xsd:string"/>
28
		</xsd:complexType>
29
	</xsd:element>
30
</xsd:schema>
(-)foundation/eclipselink.core.test/run/SRGTestModel.launch (+41 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/SRGTestModel.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
11
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
12
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
13
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
14
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;eclipselink.core.test&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
</listAttribute>
36
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
37
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.tests.SRGTestModel"/>
38
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
39
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
40
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
41
</launchConfiguration>
(-)foundation/eclipselink.core.test/run/test.properties (+11 lines)
Line 0 Link Here
1
# Testing environment properties
2
# Set your target database properties here or give it by -Dtest.properties=file option
3
jdbc.driver.jar=../../../extension.oracle.lib.external/ojdbc5_11.jar
4
db.driver=oracle.jdbc.OracleDriver
5
db.url=jdbc:oracle:thin:@localhost:1521:orcl
6
db.user=scott
7
db.pwd=tiger
8
db.platform=org.eclipse.persistence.platform.database.oracle.OraclePlatform
9
10
# Logging option for debugging
11
logging.level=info
(-)foundation/eclipselink.core.test/run/Testing Browser.launch (+36 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
30
</listAttribute>
31
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
32
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
33
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
34
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions"/>
35
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
36
</launchConfiguration>
(-)foundation/eclipselink.core.test/run/LRGTestModel.launch (+41 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/TestRunModel.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
11
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
12
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
13
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
14
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;eclipselink.core.test&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
</listAttribute>
36
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
37
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.tests.TestRunModel"/>
38
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
39
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
40
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
41
</launchConfiguration>
(-)foundation/eclipselink.core.test/run/LRGTestModel.launch (+41 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/TestRunModel.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
11
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
12
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
13
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
14
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;eclipselink.core.test&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
</listAttribute>
36
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
37
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.tests.TestRunModel"/>
38
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
39
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
40
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
41
</launchConfiguration>
(-)foundation/eclipselink.core.test/run/SRGTestModel.launch (+41 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/SRGTestModel.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
11
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
12
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
13
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
14
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;eclipselink.core.test&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
</listAttribute>
36
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
37
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.tests.SRGTestModel"/>
38
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
39
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
40
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
41
</launchConfiguration>
(-)foundation/eclipselink.core.test/run/test.properties (+11 lines)
Line 0 Link Here
1
# Testing environment properties
2
# Set your target database properties here or give it by -Dtest.properties=file option
3
jdbc.driver.jar=../../../extension.oracle.lib.external/ojdbc5_11.jar
4
db.driver=oracle.jdbc.OracleDriver
5
db.url=jdbc:oracle:thin:@localhost:1521:orcl
6
db.user=scott
7
db.pwd=tiger
8
db.platform=org.eclipse.persistence.platform.database.oracle.OraclePlatform
9
10
# Logging option for debugging
11
logging.level=info
(-)foundation/eclipselink.core.test/run/Testing Browser.launch (+36 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
30
</listAttribute>
31
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
32
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
33
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.core.test"/>
34
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions"/>
35
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.core.test/run}"/>
36
</launchConfiguration>
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/TestCase.java (-1 / +5 lines)
Lines 257-263 Link Here
257
        if (executor == null) {
257
        if (executor == null) {
258
            executor = TestExecutor.getDefaultExecutor();
258
            executor = TestExecutor.getDefaultExecutor();
259
        }
259
        }
260
        execute(executor);
260
        try {
261
        	execute(executor);
262
        } catch (TestWarningException exception) {
263
        	System.out.println("WARNING: " + exception);
264
        }
261
    }
265
    }
262
266
263
    /**
267
    /**
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/TestCollection.java (-1 / +16 lines)
Lines 259-264 Link Here
259
    public Vector getTests() {
259
    public Vector getTests() {
260
        return tests;
260
        return tests;
261
    }
261
    }
262
    
263
    /**
264
     * Counts the number of test cases that will be run by this test.
265
     * If the tests have not been added yet just return 1.
266
     */
267
    public int countTestCases() {
268
        if (getTests().isEmpty()) {
269
            return 1;
270
        }
271
        return super.countTestCases();
272
    }
262
273
263
    /**
274
    /**
264
     * Returns the number of tests in this suite
275
     * Returns the number of tests in this suite
Lines 297-303 Link Here
297
            }
308
            }
298
            execute(executor);
309
            execute(executor);
299
        } catch (Throwable exception) {
310
        } catch (Throwable exception) {
300
            result.addError(this, exception);
311
            if (exception instanceof TestWarningException) {
312
                    System.out.println("WARNING: " + exception);
313
            } else {
314
                result.addError(this, exception);
315
            }
301
        }
316
        }
302
    }
317
    }
303
318
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/TestSystem.java (-9 / +9 lines)
Lines 109-131 Link Here
109
     * This file (twork directory) must be on the classpath.
109
     * This file (twork directory) must be on the classpath.
110
     */
110
     */
111
    public void loadLoginFromProperties() {
111
    public void loadLoginFromProperties() {
112
        URL url = Thread.currentThread().getContextClassLoader().getResource("titl.properties");
112
        URL url = Thread.currentThread().getContextClassLoader().getResource("test.properties");
113
        if (url == null) {
113
        if (url == null) {
114
            throw new TestErrorException("titl.properties must be on your classpath to run this test.");
114
            throw new TestErrorException("test.properties must be on your classpath to run this test.");
115
        }
115
        }
116
        Properties properties = new Properties();
116
        Properties properties = new Properties();
117
        try {
117
        try {
118
            properties.load(url.openStream());
118
            properties.load(url.openStream());
119
        } catch (java.io.IOException exception) {
119
        } catch (java.io.IOException exception) {
120
            throw new TestErrorException("Error loading titl.properties.", exception);
120
            throw new TestErrorException("Error loading test.properties.", exception);
121
        }
121
        }
122
        login = new DatabaseLogin();
122
        login = new DatabaseLogin();
123
        login.setDriverClassName((String)properties.get("login.driverClass"));
123
        login.setDriverClassName((String)properties.get("db.driver"));
124
        login.setConnectionString((String)properties.get("login.databaseURL"));
124
        login.setConnectionString((String)properties.get("db.url"));
125
        login.setUserName((String)properties.get("login.username"));
125
        login.setUserName((String)properties.get("db.user"));
126
        // This avoids encrypting the password, as some tests require it non-encrypted.
126
        // This avoids encrypting the password, as some tests require it non-encrypted.
127
        login.setEncryptedPassword((String)properties.get("login.password"));
127
        login.setEncryptedPassword((String)properties.get("db.pwd"));
128
        login.setPlatformClassName((String)properties.get("login.databaseplatform"));
128
        login.setPlatformClassName((String)properties.get("db.platform"));
129
    }
129
    }
130
130
131
    /**
131
    /**
Lines 299-305 Link Here
299
        login.setUserName(userName);
299
        login.setUserName(userName);
300
        //set the encrypted password will enable toplink to use the plain text password as is
300
        //set the encrypted password will enable toplink to use the plain text password as is
301
        login.setEncryptedPassword("password");
301
        login.setEncryptedPassword("password");
302
        login.setDatabaseURL("//tlsvrdb3.ca.oracle.com/"+userName);
302
        login.setDatabaseURL("//tlsvrdb4.ca.oracle.com/"+userName);
303
        login.useByteArrayBinding();
303
        login.useByteArrayBinding();
304
        setLogin(login);
304
        setLogin(login);
305
    }
305
    }
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java (-31 / +1 lines)
Lines 907-913 Link Here
907
     * @param args java.lang.String[]
907
     * @param args java.lang.String[]
908
     */
908
     */
909
    public static void main(java.lang.String[] args) {
909
    public static void main(java.lang.String[] args) {
910
        try {
910
    try {
911
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
911
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
912
            TestingBrowserFrame aTestingBrowserFrame;
912
            TestingBrowserFrame aTestingBrowserFrame;
913
            aTestingBrowserFrame = new TestingBrowserFrame();
913
            aTestingBrowserFrame = new TestingBrowserFrame();
Lines 919-990 Link Here
919
        }
919
        }
920
    }
920
    }
921
921
922
    /**
923
     *
924
     */
925
    public void testingBrowserPanel1KillTest() {
922
    public void testingBrowserPanel1KillTest() {
926
        getTestingBrowserPanel1().killTest();
923
        getTestingBrowserPanel1().killTest();
927
    }
924
    }
928
925
929
    /**
930
     *
931
     */
932
    public void testingBrowserPanel1LogTestResults() {
926
    public void testingBrowserPanel1LogTestResults() {
933
        getTestingBrowserPanel1().logTestResults();
927
        getTestingBrowserPanel1().logTestResults();
934
    }
928
    }
935
929
936
    /**
937
     *
938
     */
939
    public void testingBrowserPanel1QueryLoadBuild() {
930
    public void testingBrowserPanel1QueryLoadBuild() {
940
        getTestingBrowserPanel1().queryLoadBuild();
931
        getTestingBrowserPanel1().queryLoadBuild();
941
    }
932
    }
942
933
943
    /**
944
     *
945
     */
946
    public void testingBrowserPanel1RefreshModels() {
934
    public void testingBrowserPanel1RefreshModels() {
947
        getTestingBrowserPanel1().refreshModels();
935
        getTestingBrowserPanel1().refreshModels();
948
    }
936
    }
949
937
950
    /**
951
     *
952
     */
953
    public void testingBrowserPanel1RefreshTests() {
938
    public void testingBrowserPanel1RefreshTests() {
954
        getTestingBrowserPanel1().refreshTests();
939
        getTestingBrowserPanel1().refreshTests();
955
    }
940
    }
956
941
957
    /**
958
     *
959
     */
960
    public void testingBrowserPanel1ResetTest() {
942
    public void testingBrowserPanel1ResetTest() {
961
        getTestingBrowserPanel1().resetTest();
943
        getTestingBrowserPanel1().resetTest();
962
    }
944
    }
963
945
964
    /**
965
     *
966
     */
967
    public void testingBrowserPanel1RunTest() {
946
    public void testingBrowserPanel1RunTest() {
968
        getTestingBrowserPanel1().runTest();
947
        getTestingBrowserPanel1().runTest();
969
    }
948
    }
970
949
971
    /**
972
     *
973
     */
974
    public void testingBrowserPanel1SaveLoadBuild() {
950
    public void testingBrowserPanel1SaveLoadBuild() {
975
        getTestingBrowserPanel1().saveLoadBuild();
951
        getTestingBrowserPanel1().saveLoadBuild();
976
    }
952
    }
977
953
978
    /**
979
     *
980
     */
981
    public void testingBrowserPanel1SetupTest() {
954
    public void testingBrowserPanel1SetupTest() {
982
        getTestingBrowserPanel1().setupTest();
955
        getTestingBrowserPanel1().setupTest();
983
    }
956
    }
984
957
985
    /**
986
     *
987
     */
988
    public void testingBrowserPanel1StopTest() {
958
    public void testingBrowserPanel1StopTest() {
989
        getTestingBrowserPanel1().stopTest();
959
        getTestingBrowserPanel1().stopTest();
990
    }
960
    }
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/conversion/ConversionManagerTestModel.java (-1 / +1 lines)
Lines 280-286 Link Here
280
        } catch (Exception e){
280
        } catch (Exception e){
281
            getSession().logMessage("Unable to load Oracle-specific conversion tests.  This usually occurs when the tests were compiled " +
281
            getSession().logMessage("Unable to load Oracle-specific conversion tests.  This usually occurs when the tests were compiled " +
282
                    " on a non-Oracle environment. If you are not running on Oracle, this is not a problem.");
282
                    " on a non-Oracle environment. If you are not running on Oracle, this is not a problem.");
283
            if (getSession().getPlatform().isOracle()){
283
            if (getSession().getPlatform().isOracle9()){
284
                throw new TestProblemException("Could not load: Oracle-specific conversion tests", e);
284
                throw new TestProblemException("Could not load: Oracle-specific conversion tests", e);
285
            }
285
            }
286
        }
286
        }
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/customsqlstoredprocedures/StoredProcedureObjectRelationalParameters.java (-2 / +2 lines)
Lines 47-54 Link Here
47
    
47
    
48
    public void setup() {
48
    public void setup() {
49
        // right now only the stored procedure is set up in Oracle
49
        // right now only the stored procedure is set up in Oracle
50
        if (!(getSession().getPlatform().isOracle())) {
50
        if (!(getSession().getPlatform().isOracle9())) {
51
            throw new TestWarningException("This test can only be run in Oracle");
51
            throw new TestWarningException("This test can only be run in Oracle9");
52
        }
52
        }
53
        try {
53
        try {
54
            getSession().executeNonSelectingSQL("Delete from PolicyHolders where (ssn = "+policyHolderIdToUse+" )");
54
            getSession().executeNonSelectingSQL("Delete from PolicyHolders where (ssn = "+policyHolderIdToUse+" )");
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/insurance/InsuranceObjectRelationalTestModel.java (-2 / +2 lines)
Lines 26-38 Link Here
26
        // Must logout to reset type information.
26
        // Must logout to reset type information.
27
        getDatabaseSession().logout();
27
        getDatabaseSession().logout();
28
        getDatabaseSession().login();
28
        getDatabaseSession().login();
29
        if (getSession().getPlatform().isOracle()) {
29
        if (getSession().getPlatform().isOracle9()) {
30
            addRequiredSystem(new InsuranceORSystem());
30
            addRequiredSystem(new InsuranceORSystem());
31
        }
31
        }
32
    }
32
    }
33
33
34
    public void addTests() {
34
    public void addTests() {
35
        if (getSession().getPlatform() instanceof OraclePlatform) {
35
        if (getSession().getPlatform().isOracle9()) {
36
            super.addTests();
36
            super.addTests();
37
            addTest(getNestedTablesReadObjectTestSuite());
37
            addTest(getNestedTablesReadObjectTestSuite());
38
            addTest(getObjectArrayUpdateTestSuite());
38
            addTest(getObjectArrayUpdateTestSuite());
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/sessionsxml/SessionsXMLSchemaWriteTest.java (+376 lines)
Line 0 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 1998, 2007 Oracle. All rights reserved.
3
 * This program and the accompanying materials are made available under the
4
 * terms of the Eclipse Public License v1.0, which accompanies this distribution
5
 * and is available at http://www.eclipse.org/legal/epl-v10.html.
6
 *
7
 * Contributors:
8
 *     Oracle - initial API and implementation from Oracle TopLink
9
 ******************************************************************************/  
10
package org.eclipse.persistence.testing.tests.sessionsxml;
11
12
import java.io.File;
13
import java.io.FileReader;
14
import java.io.FileWriter;
15
import java.util.Vector;
16
17
import org.eclipse.persistence.oxm.XMLContext;
18
import org.eclipse.persistence.oxm.XMLUnmarshaller;
19
import org.eclipse.persistence.testing.framework.AutoVerifyTestCase;
20
import org.eclipse.persistence.testing.framework.TestErrorException;
21
import org.eclipse.persistence.internal.sessions.factories.*;
22
import org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs;
23
import org.eclipse.persistence.internal.sessions.factories.model.clustering.RMIJNDIClusteringConfig;
24
import org.eclipse.persistence.internal.sessions.factories.model.csm.CacheSynchronizationManagerConfig;
25
import org.eclipse.persistence.internal.sessions.factories.model.log.DefaultSessionLogConfig;
26
import org.eclipse.persistence.internal.sessions.factories.model.login.DatabaseLoginConfig;
27
import org.eclipse.persistence.internal.sessions.factories.model.platform.CustomServerPlatformConfig;
28
import org.eclipse.persistence.internal.sessions.factories.model.platform.ServerPlatformConfig;
29
import org.eclipse.persistence.internal.sessions.factories.model.pool.PoolsConfig;
30
import org.eclipse.persistence.internal.sessions.factories.model.pool.ReadConnectionPoolConfig;
31
import org.eclipse.persistence.internal.sessions.factories.model.pool.WriteConnectionPoolConfig;
32
import org.eclipse.persistence.internal.sessions.factories.model.project.ProjectClassConfig;
33
import org.eclipse.persistence.internal.sessions.factories.model.property.PropertyConfig;
34
import org.eclipse.persistence.internal.sessions.factories.model.rcm.RemoteCommandManagerConfig;
35
import org.eclipse.persistence.internal.sessions.factories.model.session.DatabaseSessionConfig;
36
import org.eclipse.persistence.internal.sessions.factories.model.session.ServerSessionConfig;
37
import org.eclipse.persistence.internal.sessions.factories.model.transport.JMSTopicTransportManagerConfig;
38
import org.eclipse.persistence.internal.sessions.factories.model.transport.naming.JNDINamingServiceConfig;
39
40
/**
41
 * Tests the OX writing portion of the XMLSessionConfig model.
42
 *
43
 * @author Guy Pelletier
44
 * @version 1.0
45
 * @date November 18, 2003
46
 */
47
public class SessionsXMLSchemaWriteTest extends AutoVerifyTestCase {
48
    private File m_resource;
49
    private DatabaseSessionConfig m_session;
50
51
    public SessionsXMLSchemaWriteTest() {
52
        setDescription("Test the writing portion of the session xml against the XML Schema");
53
    }
54
55
    public void reset() {
56
    }
57
58
    protected void setup() throws Exception {
59
        m_resource = new File("XMLSchemaWriteTest.xml");
60
61
        SessionConfigs sessions = new SessionConfigs();
62
63
        DatabaseSessionConfig dbSessionConfig = new DatabaseSessionConfig();
64
65
        // Cache synchronization manager
66
        CacheSynchronizationManagerConfig csmConfig = new CacheSynchronizationManagerConfig();
67
68
        // Clustering service
69
        RMIJNDIClusteringConfig csConfig = new RMIJNDIClusteringConfig();
70
        csConfig.setMulticastPort(new Integer(1973));
71
        csConfig.setMulticastGroupAddress("somewhereunknown");
72
        csConfig.setPacketTimeToLive(new Integer(31473));
73
        csConfig.setJNDIPassword("password");
74
        csConfig.setJNDIUsername("username");
75
        csConfig.setNamingServiceInitialContextFactoryName("initialContextFactoryName");
76
        csConfig.setNamingServiceURL("localhost:1099");
77
        csmConfig.setClusteringServiceConfig(csConfig);
78
79
        csmConfig.setIsAsynchronous(true);
80
        csmConfig.setRemoveConnectionOnError(true);
81
82
        dbSessionConfig.setCacheSynchronizationManagerConfig(csmConfig);
83
84
        // Exception handler class
85
        dbSessionConfig.setExceptionHandlerClass("handlerClass");
86
87
        // CustomServerPlatformConfid & External transaction controller
88
        CustomServerPlatformConfig platformConfig = new CustomServerPlatformConfig();
89
        platformConfig.setExternalTransactionControllerClass("externalTransactionController");
90
        dbSessionConfig.setServerPlatformConfig(platformConfig);
91
92
        // Log config
93
        DefaultSessionLogConfig logConfig = new DefaultSessionLogConfig();
94
        logConfig.setLogLevel("severe");
95
        logConfig.setFilename("logfile");
96
        dbSessionConfig.setLogConfig(logConfig);
97
98
        // Login
99
        DatabaseLoginConfig loginConfig = new DatabaseLoginConfig();
100
        loginConfig.setBatchWriting(true);
101
        loginConfig.setBindAllParameters(true);
102
        loginConfig.setByteArrayBinding(false);
103
        loginConfig.setCacheAllStatements(false);
104
        loginConfig.setConnectionURL("jdbc:oracle:thin:@otl-ora8infmx73:1521:toplinkj");
105
        loginConfig.setDriverClass("oracle.jdbc.OracleDriver");
106
        loginConfig.setExternalConnectionPooling(false);
107
        loginConfig.setExternalTransactionController(false);
108
        loginConfig.setForceFieldNamesToUppercase(false);
109
        loginConfig.setJdbcBatchWriting(false);
110
        loginConfig.setMaxBatchWritingSize(new Integer(5));
111
        loginConfig.setNativeSequencing(false);
112
        loginConfig.setNativeSQL(false);
113
        loginConfig.setOptimizeDataConversion(true);
114
        loginConfig.setPassword("password");
115
        loginConfig.setPlatformClass("platform");
116
        loginConfig.setSequenceCounterField("SEQ_COUNT");
117
        loginConfig.setSequenceNameField("SEQ_NAME");
118
        loginConfig.setSequencePreallocationSize(new Integer(99));
119
        loginConfig.setSequenceTable("SEQUENCE");
120
        loginConfig.setStreamsForBinding(false);
121
        loginConfig.setStringBinding(false);
122
        loginConfig.setTableQualifier("table:");
123
        loginConfig.setTrimStrings(true);
124
        loginConfig.setUsername("tljtest1");
125
        dbSessionConfig.setLoginConfig(loginConfig);
126
127
        // Name
128
        dbSessionConfig.setName("EmployeeSession");
129
130
        // Profiler
131
        dbSessionConfig.setProfiler("toplink");
132
133
        // Primary project
134
        ProjectClassConfig projectConfig = new ProjectClassConfig();
135
        projectConfig.setProjectString("org.eclipse.persistence.demos.employee.relational.EmployeeProject");
136
        dbSessionConfig.setPrimaryProject(projectConfig);
137
138
        // Remote command manager
139
        RemoteCommandManagerConfig rcmConfig = new RemoteCommandManagerConfig();
140
        rcmConfig.setChannel("new_channel");
141
142
        // Transport Manager
143
        JMSTopicTransportManagerConfig transportConfig = new JMSTopicTransportManagerConfig();
144
        transportConfig.setOnConnectionError("KeepConnection");
145
        transportConfig.setTopicHostURL("ormi://jms_topic_host");
146
        transportConfig.setTopicConnectionFactoryName("test-topic-connection-factory-name");
147
        transportConfig.setTopicName("test-topic-name");
148
149
        // Naming
150
        JNDINamingServiceConfig namingConfig = new JNDINamingServiceConfig();
151
        namingConfig.setURL("new_jndi_url");
152
        namingConfig.setUsername("guy");
153
        namingConfig.setPassword("password");
154
        namingConfig.setInitialContextFactoryName("new_initial_context_factory_name");
155
156
        Vector props = new Vector();
157
        PropertyConfig one = new PropertyConfig();
158
        one.setName("name1");
159
        one.setValue("value1");
160
        props.add(one);
161
        PropertyConfig two = new PropertyConfig();
162
        two.setName("name2");
163
        two.setValue("value2");
164
        props.add(two);
165
        namingConfig.setPropertyConfigs(props);
166
167
        transportConfig.setJNDINamingServiceConfig(namingConfig);
168
169
        rcmConfig.setTransportManagerConfig(transportConfig);
170
        dbSessionConfig.setRemoteCommandManagerConfig(rcmConfig);
171
172
        // Session customizer
173
        dbSessionConfig.setSessionCustomizerClass("sessionCustomizer");
174
175
        sessions.addSessionConfig(dbSessionConfig);
176
177
        ServerSessionConfig serverSessionConfig = new ServerSessionConfig();
178
        serverSessionConfig.setPoolsConfig(new PoolsConfig());
179
        ReadConnectionPoolConfig readPool = new ReadConnectionPoolConfig();
180
        readPool.setMaxConnections(new Integer(2));
181
        readPool.setMinConnections(new Integer(2));
182
        serverSessionConfig.getPoolsConfig().setReadConnectionPoolConfig(readPool);
183
        WriteConnectionPoolConfig writePool = new WriteConnectionPoolConfig();
184
        writePool.setMaxConnections(new Integer(10));
185
        writePool.setMinConnections(new Integer(5));
186
        serverSessionConfig.getPoolsConfig().setWriteConnectionPoolConfig(writePool);
187
        WriteConnectionPoolConfig userPool = new WriteConnectionPoolConfig();
188
        userPool.setMaxConnections(new Integer(5));
189
        userPool.setMinConnections(new Integer(0));
190
        serverSessionConfig.getPoolsConfig().addConnectionPoolConfig(userPool);
191
        sessions.addSessionConfig(serverSessionConfig);
192
        FileWriter writer = new FileWriter(m_resource);
193
        XMLSessionConfigWriter.write(sessions, writer);
194
        writer.close();
195
    }
196
197
    public void test() {
198
        try {
199
            FileReader reader = new FileReader(m_resource);
200
201
            // XMLSessionConfigWriter uses the latest version of XMLSessionConfigProject to write;
202
            // therefore the latest version of XMLSessionConfigWriter should be used for reading, too.
203
            XMLContext context = new XMLContext(new XMLSessionConfigProject_11_1_1());
204
            XMLUnmarshaller unmarshaller = context.createUnmarshaller();
205
            SessionConfigs eclipseLinkSessions = (SessionConfigs)unmarshaller.unmarshal(reader);
206
            m_session = (DatabaseSessionConfig)eclipseLinkSessions.getSessionConfigs().firstElement();
207
        } catch (Exception exception) {
208
            m_session = null;
209
        }
210
    }
211
212
    protected void verify() {
213
        if (m_session == null) {
214
            throw new TestErrorException("The session on read back was null");
215
        }
216
217
        // Name
218
        check("Name", m_session.getName(), "EmployeeSession");
219
220
        // Profiler
221
        check("Profiler", m_session.getProfiler(), "toplink");
222
223
        // Primary project
224
        if (m_session.getPrimaryProject() != null) {
225
            check("ProjectClass", m_session.getPrimaryProject().getProjectString(), "org.eclipse.persistence.demos.employee.relational.EmployeeProject");
226
        } else {
227
            throw new TestErrorException("ProjectClass was null");
228
        }
229
230
        // Exception handler class
231
        check("ExceptionHandlerClass", m_session.getExceptionHandlerClass(), "handlerClass");
232
233
        // guy
234
        // Custom server platform config
235
        if (m_session.getServerPlatformConfig() != null) {
236
            ServerPlatformConfig platformConfig = m_session.getServerPlatformConfig();
237
            if (platformConfig instanceof CustomServerPlatformConfig) {
238
                check("ExternalTransactionControllerClass", ((CustomServerPlatformConfig)platformConfig).getExternalTransactionControllerClass(), "externalTransactionController");
239
            } else {
240
                throw new TestErrorException("ServerPlatformConfig not correct type");
241
            }
242
        } else {
243
            throw new TestErrorException("ServerPlatformConfig was null");
244
        }
245
246
        // Session customizer
247
        check("SessionCustomizer", m_session.getSessionCustomizerClass(), "sessionCustomizer");
248
249
        // Cache synchronization manager
250
        CacheSynchronizationManagerConfig csmConfig = m_session.getCacheSynchronizationManagerConfig();
251
252
        if (csmConfig == null) {
253
            throw new TestErrorException("CacheSynchronizationManagerConfig was null");
254
        } else {
255
            checkBoolean("IsAsynchronous", csmConfig.getIsAsynchronous(), true);
256
            checkBoolean("RemoveConnectionOnError", csmConfig.getRemoveConnectionOnError(), true);
257
258
            // Clustering service
259
            if (!(csmConfig.getClusteringServiceConfig() instanceof RMIJNDIClusteringConfig)) {
260
                throw new TestErrorException("ClusteringServiceConfig not correct type");
261
            }
262
263
            RMIJNDIClusteringConfig csConfig = (RMIJNDIClusteringConfig)csmConfig.getClusteringServiceConfig();
264
            check("MulticastPort", csConfig.getMulticastPort(), new Integer(1973));
265
            check("MulticastGroupAddress", csConfig.getMulticastGroupAddress(), "somewhereunknown");
266
            check("PacketTimeToLive", csConfig.getPacketTimeToLive(), new Integer(31473));
267
            check("JNDIPassword", csConfig.getJNDIPassword(), "password");
268
            check("JNDIUsername", csConfig.getJNDIUsername(), "username");
269
            check("NamingServiceInitialContextFactoryName", csConfig.getNamingServiceInitialContextFactoryName(), "initialContextFactoryName");
270
            check("NamingServiceURL", csConfig.getNamingServiceURL(), "localhost:1099");
271
        }
272
273
        // Log config
274
        if (m_session.getLogConfig() instanceof DefaultSessionLogConfig) {
275
            DefaultSessionLogConfig logConfig = (DefaultSessionLogConfig)m_session.getLogConfig();
276
            check("LogLevel", logConfig.getLogLevel(), "severe");
277
            check("Filename", logConfig.getFilename(), "logfile");
278
        } else {
279
            throw new TestErrorException("LogConfig not correct type");
280
        }
281
282
        // Login
283
        if (m_session.getLoginConfig() instanceof DatabaseLoginConfig) {
284
            DatabaseLoginConfig loginConfig = (DatabaseLoginConfig)m_session.getLoginConfig();
285
            checkBoolean("BatchWriting", loginConfig.getBatchWriting(), true);
286
            checkBoolean("BindAllParameters", loginConfig.getBindAllParameters(), true);
287
            checkBoolean("ByteArrayBinding", loginConfig.getByteArrayBinding(), false);
288
            checkBoolean("CacheAllStatements", loginConfig.getCacheAllStatements(), false);
289
            check("ConnectionURL", loginConfig.getConnectionURL(), "jdbc:oracle:thin:@otl-ora8infmx73:1521:toplinkj");
290
            check("DriverClass", loginConfig.getDriverClass(), "oracle.jdbc.OracleDriver");
291
            checkBoolean("ExternalConnectionPooling", loginConfig.getExternalConnectionPooling(), false);
292
            checkBoolean("ExternalTransactionController", loginConfig.getExternalTransactionController(), false);
293
            checkBoolean("ForceFieldNamesToUppercase", loginConfig.getForceFieldNamesToUppercase(), false);
294
            checkBoolean("JdbcBatchWriting", loginConfig.getJdbcBatchWriting(), false);
295
            check("MaxBatchWritingSize", loginConfig.getMaxBatchWritingSize(), new Integer(5));
296
            checkBoolean("NativeSequencing", loginConfig.getNativeSequencing(), false);
297
            checkBoolean("NativeSQL", loginConfig.getNativeSQL(), false);
298
            checkBoolean("OptimizeDataConversion", loginConfig.getOptimizeDataConversion(), true);
299
            check("Password", loginConfig.getPassword(), "password");
300
            check("PlatformClass", loginConfig.getPlatformClass(), "platform");
301
            check("SequenceCounterField", loginConfig.getSequenceCounterField(), "SEQ_COUNT");
302
            check("SequenceNameField", loginConfig.getSequenceNameField(), "SEQ_NAME");
303
            check("SequencePreallocationSize", loginConfig.getSequencePreallocationSize(), new Integer(99));
304
            check("SequenceTable", loginConfig.getSequenceTable(), "SEQUENCE");
305
            checkBoolean("StreamsForBinding", loginConfig.getStreamsForBinding(), false);
306
            checkBoolean("StringBinding", loginConfig.getStringBinding(), false);
307
            check("TableQualifier", loginConfig.getTableQualifier(), "table:");
308
            checkBoolean("TrimStrings", loginConfig.getTrimStrings(), true);
309
            check("Username", loginConfig.getUsername(), "tljtest1");
310
        } else {
311
            throw new TestErrorException("LogConfig not correct type");
312
        }
313
314
        // Remote command manager
315
        RemoteCommandManagerConfig rcmConfig = m_session.getRemoteCommandManagerConfig();
316
317
        if (rcmConfig == null) {
318
            throw new TestErrorException("RemoteCommandManagerConfig was null");
319
        } else {
320
            // Channel
321
            check("Channel", rcmConfig.getChannel(), "new_channel");
322
323
            if (rcmConfig.getTransportManagerConfig() instanceof JMSTopicTransportManagerConfig) {
324
                // Transport manager
325
                JMSTopicTransportManagerConfig transportConfig = (JMSTopicTransportManagerConfig)rcmConfig.getTransportManagerConfig();
326
                check("OnConnectionError", transportConfig.getOnConnectionError(), "KeepConnection");
327
                check("TopicHostURL", transportConfig.getTopicHostURL(), "ormi://jms_topic_host");
328
                check("TopicConnectionFactoryName", transportConfig.getTopicConnectionFactoryName(), "test-topic-connection-factory-name");
329
                check("TopicName", transportConfig.getTopicName(), "test-topic-name");
330
331
                // Naming
332
                JNDINamingServiceConfig namingConfig = transportConfig.getJNDINamingServiceConfig();
333
334
                if (namingConfig == null) {
335
                    throw new TestErrorException("JNDINamingServiceConfig was null");
336
                } else {
337
                    check("Naming URL", namingConfig.getURL(), "new_jndi_url");
338
                    check("Naming Username", namingConfig.getUsername(), "guy");
339
                    check("Naming Password", namingConfig.getPassword(), "password");
340
                    check("InitialContextFactoryName", namingConfig.getInitialContextFactoryName(), "new_initial_context_factory_name");
341
342
                    // Properties
343
                    Vector propertyConfigs = namingConfig.getPropertyConfigs();
344
345
                    if (propertyConfigs == null) {
346
                        throw new TestErrorException("PropertyConfigs were null");
347
                    } else if (propertyConfigs.size() != 2) {
348
                        throw new TestErrorException("PropertyConfigs were not the correct size");
349
                    } else {
350
                        PropertyConfig one = (PropertyConfig)propertyConfigs.firstElement();
351
                        check("Property name", one.getName(), "name1");
352
                        check("Property value", one.getValue(), "value1");
353
354
                        PropertyConfig two = (PropertyConfig)propertyConfigs.lastElement();
355
                        check("Property name", two.getName(), "name2");
356
                        check("Property value", two.getValue(), "value2");
357
                    }
358
                }
359
            } else {
360
                throw new TestErrorException("TransportManagerConfig not correct type");
361
            }
362
        }
363
    }
364
365
    private void checkBoolean(String name, boolean one, boolean two) {
366
        if (one != two) {
367
            throw new TestErrorException("For: " + name + ", expecting: " + one + ", found: " + two);
368
        }
369
    }
370
371
    private void check(String name, Object one, Object two) {
372
        if (!one.equals(two)) {
373
            throw new TestErrorException("For: " + name + ", expecting: " + one + ", found: " + two);
374
        }
375
    }
376
}
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/SRGTestModel.java (+10 lines)
Lines 12-17 Link Here
12
import org.eclipse.persistence.testing.framework.*;
12
import org.eclipse.persistence.testing.framework.*;
13
import org.eclipse.persistence.testing.tests.employee.EmployeeBasicTestModel;
13
import org.eclipse.persistence.testing.tests.employee.EmployeeBasicTestModel;
14
import org.eclipse.persistence.testing.tests.inheritance.InheritanceTestModel;
14
import org.eclipse.persistence.testing.tests.inheritance.InheritanceTestModel;
15
import org.eclipse.persistence.testing.tests.insurance.InsuranceBasicTestModel;
15
16
16
public class SRGTestModel extends TestModel {
17
public class SRGTestModel extends TestModel {
17
    public SRGTestModel() {
18
    public SRGTestModel() {
Lines 25-28 Link Here
25
        addTest(new InheritanceTestModel(isSRG));
26
        addTest(new InheritanceTestModel(isSRG));
26
        addTest(new org.eclipse.persistence.testing.tests.sessionsxml.SessionsXMLTestModel(isSRG));
27
        addTest(new org.eclipse.persistence.testing.tests.sessionsxml.SessionsXMLTestModel(isSRG));
27
    }
28
    }
29
    
30
    /**
31
     * Return the JUnit suite to allow JUnit runner to find it.
32
     * Unfortunately JUnit only allows suite methods to be static,
33
     * so it is not possible to generically do this.
34
     */
35
    public static junit.framework.TestSuite suite() {
36
        return new SRGTestModel();
37
    }
28
}
38
}
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/TestRunModel.java (-1 / +8 lines)
Lines 239-245 Link Here
239
        }
239
        }
240
        return model;
240
        return model;
241
    }
241
    }
242
242
    
243
    /**
244
     * Return the JUnit suite to allow JUnit runner to find it.
245
     */
246
    public static junit.framework.TestSuite suite() {
247
        return buildLRGTestModel();
248
    }
249
    
243
    public static TestRunModel buildLRGTestModel() {
250
    public static TestRunModel buildLRGTestModel() {
244
        TestRunModel model = new TestRunModel();
251
        TestRunModel model = new TestRunModel();
245
        model.setName("LRGTestModel");
252
        model.setName("LRGTestModel");
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/workbenchintegration/ProjectClassGeneratorTestModel.java (-1 / +1 lines)
Lines 49-55 Link Here
49
        addRequiredSystem(new DirectMapMappingMWIntergrationSubSystem());
49
        addRequiredSystem(new DirectMapMappingMWIntergrationSubSystem());
50
        addRequiredSystem(new CMWorkbenchIntegrationSubSystem());
50
        addRequiredSystem(new CMWorkbenchIntegrationSubSystem());
51
        addRequiredSystem(new ProxyIndirectionMWIntegrationSubSystem());
51
        addRequiredSystem(new ProxyIndirectionMWIntegrationSubSystem());
52
        if(this.getSession().getPlatform().isOracle()) {
52
        if(this.getSession().getPlatform().isOracle9()) {
53
            addRequiredSystem(new InsuranceORWorkbenchIntegrationSystem()); // Note: not a sub system
53
            addRequiredSystem(new InsuranceORWorkbenchIntegrationSystem()); // Note: not a sub system
54
        }
54
        }
55
        addRequiredSystem(new MappingModelWorkbenchIntegrationSubSystem());
55
        addRequiredSystem(new MappingModelWorkbenchIntegrationSubSystem());
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/workbenchintegration/XMLProjectWriterTestModel.java (-2 / +2 lines)
Lines 49-55 Link Here
49
        addRequiredSystem(new DirectMapMappingMWIntergrationSystem());
49
        addRequiredSystem(new DirectMapMappingMWIntergrationSystem());
50
        addRequiredSystem(new CMWorkbenchIntegrationSystem());
50
        addRequiredSystem(new CMWorkbenchIntegrationSystem());
51
        addRequiredSystem(new ProxyIndirectionMWIntegrationSystem());
51
        addRequiredSystem(new ProxyIndirectionMWIntegrationSystem());
52
        if(this.getSession().getPlatform().isOracle()) {
52
        if(this.getSession().getPlatform().isOracle9()) {
53
        	addRequiredSystem(new InsuranceORWorkbenchIntegrationSystem());
53
        	addRequiredSystem(new InsuranceORWorkbenchIntegrationSystem());
54
        }
54
        }
55
        addRequiredSystem(new MappingModelWorkbenchIntegrationSystem());
55
        addRequiredSystem(new MappingModelWorkbenchIntegrationSystem());
Lines 151-157 Link Here
151
        //Insurance model test
151
        //Insurance model test
152
        class TestSuiteOracleOnly extends TestSuite {
152
        class TestSuiteOracleOnly extends TestSuite {
153
            public void setup() {
153
            public void setup() {
154
                if(!getSession().getPlatform().isOracle()) {
154
                if(!getSession().getPlatform().isOracle9()) {
155
                    throw new TestWarningException("This test suite is intended for Oracle databases only.");
155
                    throw new TestWarningException("This test suite is intended for Oracle databases only.");
156
                }
156
                }
157
            }
157
            }
(-)foundation/eclipselink.core.test/src/org/eclipse/persistence/tools/sessionconsole/LoginEditorPanel.java (-2 / +2 lines)
Lines 3025-3033 Link Here
3025
        getDriverChoice().addItem("sun.jdbc.odbc.JdbcOdbcDriver");
3025
        getDriverChoice().addItem("sun.jdbc.odbc.JdbcOdbcDriver");
3026
3026
3027
        getPlatformChoice().removeAllItems();
3027
        getPlatformChoice().removeAllItems();
3028
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.OraclePlatform");
3029
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.Oracle8Platform");
3028
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.Oracle9Platform");
3030
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.Oracle9Platform");
3029
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.Oracle8Platform");
3030
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.oracle.OraclePlatform");
3031
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.DB2Platform");
3031
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.DB2Platform");
3032
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.SybasePlatform");
3032
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.SybasePlatform");
3033
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.SQLServerPlatform");
3033
        getPlatformChoice().addItem("org.eclipse.persistence.platform.database.SQLServerPlatform");
(-)foundation/eclipselink.core/src/org/eclipse/persistence/internal/databaseaccess/DatabasePlatform.java (-15 / +13 lines)
Lines 70-76 Link Here
70
 * DatabasePlatform is private to TopLink. It encapsulates behavior specific to a database platform
70
 * DatabasePlatform is private to TopLink. It encapsulates behavior specific to a database platform
71
 * (eg. Oracle, Sybase, DBase), and provides protocol for TopLink to access this behavior. The behavior categories
71
 * (eg. Oracle, Sybase, DBase), and provides protocol for TopLink to access this behavior. The behavior categories
72
 * which require platform specific handling are SQL generation and sequence behavior. While database platform
72
 * which require platform specific handling are SQL generation and sequence behavior. While database platform
73
 * currently provides sequence number retrieval behaviour, this will move to a sequence manager (when it is
73
 * currently provides sequence number retrieval behavior, this will move to a sequence manager (when it is
74
 * implemented).
74
 * implemented).
75
 *
75
 *
76
 * @see AccessPlatform
76
 * @see AccessPlatform
Lines 86-92 Link Here
86
    /** Holds a hashtable of values used to map JAVA types to database types for table creation */
86
    /** Holds a hashtable of values used to map JAVA types to database types for table creation */
87
    protected transient Hashtable fieldTypes;
87
    protected transient Hashtable fieldTypes;
88
88
89
    /** Indicates that native SQL should be used for literal values instead of ODBC esacpe format
89
    /** Indicates that native SQL should be used for literal values instead of ODBC escape format
90
    Only used with Oracle, Sybase & DB2 */
90
    Only used with Oracle, Sybase & DB2 */
91
    protected boolean usesNativeSQL;
91
    protected boolean usesNativeSQL;
92
92
Lines 195-201 Link Here
195
    /**
195
    /**
196
     * INTERNAL:
196
     * INTERNAL:
197
     * Get the map of TypeConverters
197
     * Get the map of TypeConverters
198
     * This map indexs StructConverters by the Java Class they are meant to
198
     * This map indexes StructConverters by the Java Class they are meant to
199
     * convert
199
     * convert
200
     */
200
     */
201
    public Map<Class, StructConverter> getTypeConverters() {
201
    public Map<Class, StructConverter> getTypeConverters() {
Lines 238-244 Link Here
238
    }
238
    }
239
239
240
    /**
240
    /**
241
     * Used for sp defs.
241
     * Used for stored procedure definitions.
242
     */
242
     */
243
    public boolean allowsSizeInProcedureArguments() {
243
    public boolean allowsSizeInProcedureArguments() {
244
        return true;
244
        return true;
Lines 256-263 Link Here
256
    }
256
    }
257
257
258
    /**
258
    /**
259
     *    Append the ByteArray in ODBC literal format ({b hexString}).
259
     * Append the ByteArray in ODBC literal format ({b hexString}).
260
     *    This limits the amount of Binary data by the length of the SQL. Binding should increase this limit.
260
     * This limits the amount of Binary data by the length of the SQL. Binding should increase this limit.
261
     */
261
     */
262
    protected void appendByteArray(byte[] bytes, Writer writer) throws IOException {
262
    protected void appendByteArray(byte[] bytes, Writer writer) throws IOException {
263
        writer.write("{b '");
263
        writer.write("{b '");
Lines 284-290 Link Here
284
    }
284
    }
285
285
286
    /**
286
    /**
287
     * INTERNAL
287
     * INTERNAL:
288
     * In case shouldBindLiterals is true, instead of null value a DatabaseField
288
     * In case shouldBindLiterals is true, instead of null value a DatabaseField
289
     * value may be passed (so that it's type could be used for binding null).
289
     * value may be passed (so that it's type could be used for binding null).
290
     */
290
     */
Lines 300-306 Link Here
300
    }
300
    }
301
    
301
    
302
    /**
302
    /**
303
     * INTERNAL
303
     * INTERNAL:
304
     * Override this method in case the platform needs to do something special for binding literals.
304
     * Override this method in case the platform needs to do something special for binding literals.
305
     * Note that instead of null value a DatabaseField
305
     * Note that instead of null value a DatabaseField
306
     * value may be passed (so that it's type could be used for binding null).
306
     * value may be passed (so that it's type could be used for binding null).
Lines 439-445 Link Here
439
    }
439
    }
440
440
441
    /**
441
    /**
442
     *  Used by JDBC drivers that do not support autocommit so simulate an autocommit.
442
     * Used by JDBC drivers that do not support autocommit so simulate an autocommit.
443
     */
443
     */
444
    public void autoCommit(DatabaseAccessor accessor) throws SQLException {
444
    public void autoCommit(DatabaseAccessor accessor) throws SQLException {
445
        if (!supportsAutoCommit()) {
445
        if (!supportsAutoCommit()) {
Lines 448-455 Link Here
448
    }
448
    }
449
449
450
    /**
450
    /**
451
     *  Used for jdbc drivers which do not support autocommit to explicitly begin a transaction
451
     * Used for jdbc drivers which do not support autocommit to explicitly begin a transaction
452
     *  This method is a no-op for databases which implement autocommit as expected.
452
     * This method is a no-op for databases which implement autocommit as expected.
453
     */
453
     */
454
    public void beginTransaction(DatabaseAccessor accessor) throws SQLException {
454
    public void beginTransaction(DatabaseAccessor accessor) throws SQLException {
455
        if (!supportsAutoCommit()) {
455
        if (!supportsAutoCommit()) {
Lines 580-586 Link Here
580
        int indexFirst = call.getFirstParameterIndexForCallString();
580
        int indexFirst = call.getFirstParameterIndexForCallString();
581
        for (int index = indexFirst; index < call.getParameters().size(); index++) {
581
        for (int index = indexFirst; index < call.getParameters().size(); index++) {
582
            String name = (String)call.getProcedureArgumentNames().elementAt(index);
582
            String name = (String)call.getProcedureArgumentNames().elementAt(index);
583
            Object parameter = call.getParameters().elementAt(index);
584
            Integer parameterType = (Integer)call.getParameterTypes().elementAt(index);
583
            Integer parameterType = (Integer)call.getParameterTypes().elementAt(index);
585
            if (name != null && shouldPrintStoredProcedureArgumentNameInCall()) {
584
            if (name != null && shouldPrintStoredProcedureArgumentNameInCall()) {
586
                writer.write(getProcedureArgumentString());
585
                writer.write(getProcedureArgumentString());
Lines 1671-1677 Link Here
1671
                //assumes a vector
1670
                //assumes a vector
1672
                if (dbCall.areManyRowsReturned()) {
1671
                if (dbCall.areManyRowsReturned()) {
1673
                    Vector tempResult = new Vector();
1672
                    Vector tempResult = new Vector();
1674
                    ((Vector)tempResult).add(result);
1673
                    tempResult.add(result);
1675
                    result = tempResult;
1674
                    result = tempResult;
1676
                }
1675
                }
1677
            }
1676
            }
Lines 1704-1711 Link Here
1704
1703
1705
        for (int index = 0, l = parameters.size(); index < l; index++) {
1704
        for (int index = 0, l = parameters.size(); index < l; index++) {
1706
            Object parameter = parameters.get(index);
1705
            Object parameter = parameters.get(index);
1707
            setParameterValueInDatabaseCall(parameter, (PreparedStatement)statement, index+1,
1706
            setParameterValueInDatabaseCall(parameter, statement, index+1, session);
1708
                session);
1709
        }
1707
        }
1710
        
1708
        
1711
    }
1709
    }
(-)foundation/eclipselink.core/src/org/eclipse/persistence/internal/databaseaccess/DatasourcePlatform.java (-1 / +4 lines)
Lines 17-23 Link Here
17
import org.eclipse.persistence.internal.sessions.AbstractSession;
17
import org.eclipse.persistence.internal.sessions.AbstractSession;
18
import org.eclipse.persistence.expressions.*;
18
import org.eclipse.persistence.expressions.*;
19
import org.eclipse.persistence.sequencing.*;
19
import org.eclipse.persistence.sequencing.*;
20
import org.eclipse.persistence.sessions.DatabaseSession;
21
20
22
/**
21
/**
23
 * DatasourcePlatform is private to TopLink. It encapsulates behavior specific to a datasource platform
22
 * DatasourcePlatform is private to TopLink. It encapsulates behavior specific to a datasource platform
Lines 398-403 Link Here
398
        return false;
397
        return false;
399
    }
398
    }
400
399
400
    public boolean isOracle9() {
401
        return false;
402
    }
403
401
    public boolean isPostgreSQL(){
404
    public boolean isPostgreSQL(){
402
    	return false;
405
    	return false;
403
    }
406
    }
(-)foundation/eclipselink.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java (-1 / +2 lines)
Lines 16-22 Link Here
16
import org.eclipse.persistence.internal.helper.*;
16
import org.eclipse.persistence.internal.helper.*;
17
import org.eclipse.persistence.internal.sessions.AbstractSession;
17
import org.eclipse.persistence.internal.sessions.AbstractSession;
18
import org.eclipse.persistence.sequencing.Sequence;
18
import org.eclipse.persistence.sequencing.Sequence;
19
import org.eclipse.persistence.sessions.DatabaseSession;
20
19
21
/**
20
/**
22
 * Platform is private to TopLink. It encapsulates behavior specific to a datasource platform
21
 * Platform is private to TopLink. It encapsulates behavior specific to a datasource platform
Lines 119-124 Link Here
119
    public boolean isODBC();
118
    public boolean isODBC();
120
119
121
    public boolean isOracle();
120
    public boolean isOracle();
121
    
122
    public boolean isOracle9();
122
123
123
    public boolean isPointBase();
124
    public boolean isPointBase();
124
125
(-)foundation/eclipselink.core/src/org/eclipse/persistence/platform/database/oracle/OraclePlatform.java (-60 / +60 lines)
Lines 9-15 Link Here
9
 ******************************************************************************/  
9
 ******************************************************************************/  
10
package org.eclipse.persistence.platform.database.oracle;
10
package org.eclipse.persistence.platform.database.oracle;
11
11
12
// javase imports
13
import java.io.CharArrayWriter;
12
import java.io.CharArrayWriter;
14
import java.io.IOException;
13
import java.io.IOException;
15
import java.io.Writer;
14
import java.io.Writer;
Lines 20-26 Link Here
20
import java.util.Hashtable;
19
import java.util.Hashtable;
21
import java.util.Vector;
20
import java.util.Vector;
22
21
23
// EclipseLink imports
24
import org.eclipse.persistence.exceptions.ValidationException;
22
import org.eclipse.persistence.exceptions.ValidationException;
25
import org.eclipse.persistence.expressions.ExpressionOperator;
23
import org.eclipse.persistence.expressions.ExpressionOperator;
26
import org.eclipse.persistence.internal.databaseaccess.DatabaseCall;
24
import org.eclipse.persistence.internal.databaseaccess.DatabaseCall;
Lines 37-48 Link Here
37
import org.eclipse.persistence.queries.ValueReadQuery;
35
import org.eclipse.persistence.queries.ValueReadQuery;
38
36
39
/**
37
/**
40
 *    <p><b>Purpose</b>: Provides Oracle specific behaviour.
38
 * <p><b>Purpose</b>: Provides Oracle specific behavior.
41
 *    <p><b>Responsibilities</b>:<ul>
39
 * <p><b>Responsibilities</b>:<ul>
42
 *    <li> Native SQL for byte[], Date, Time, & Timestamp.
40
 * <li> Native SQL for byte[], Date, Time, & Timestamp.
43
 *    <li> Native sequencing named sequences.
41
 * <li> Native sequencing named sequences.
44
 *    <li> Native SQL/ROWNUM support for MaxRows and FirstResult filtering.
42
 * <li> Native SQL/ROWNUM support for MaxRows and FirstResult filtering.
45
 *    </ul>
43
 * </ul>
46
 *
44
 *
47
 * @since TOPLink/Java 1.0
45
 * @since TOPLink/Java 1.0
48
 */
46
 */
Lines 50-67 Link Here
50
48
51
    /** 
49
    /** 
52
     * Oracle's Rownum can be used to limit results and for pagination, 
50
     * Oracle's Rownum can be used to limit results and for pagination, 
53
     *   using the query's maxRows and FirstResult settings
51
     * using the query's maxRows and FirstResult settings
54
     */ 
52
     */ 
55
    protected boolean useRownumFiltering = true;
53
    protected boolean useRownumFiltering = true;
56
    
54
    
57
    /** 
55
    /** 
58
     * Advanced attribute indicating whether identity is supported,
56
     * Advanced attribute indicating whether identity is supported,
59
     *   see comment to setSupportsIdentity method.
57
     * see comment to setSupportsIdentity method.
60
     */ 
58
     */ 
61
    protected boolean supportsIdentity;
59
    protected boolean supportsIdentity;
62
60
63
    /**
61
    /**
64
     * Used for sp defs.
62
     * Used for stored procedure definitions.
65
     */
63
     */
66
    public boolean allowsSizeInProcedureArguments() {
64
    public boolean allowsSizeInProcedureArguments() {
67
        return false;
65
        return false;
Lines 69-76 Link Here
69
67
70
    /**
68
    /**
71
     * INTERNAL:
69
     * INTERNAL:
72
     *    If using native SQL then print a byte[] literally as a hex string otherwise use ODBC format
70
     * If using native SQL then print a byte[] literally as a hex string otherwise use ODBC format
73
     *    as provided in DatabasePlatform.
71
     * as provided in DatabasePlatform.
74
     */
72
     */
75
    protected void appendByteArray(byte[] bytes, Writer writer) throws IOException {
73
    protected void appendByteArray(byte[] bytes, Writer writer) throws IOException {
76
        if (usesNativeSQL()) {
74
        if (usesNativeSQL()) {
Lines 84-91 Link Here
84
82
85
    /**
83
    /**
86
     * INTERNAL:
84
     * INTERNAL:
87
     *    Appends an Oracle specific date if usesNativeSQL is true otherwise use the ODBC format.
85
     * Appends an Oracle specific date if usesNativeSQL is true otherwise use the ODBC format.
88
     *    Native FORMAT: to_date('1997-11-06','yyyy-mm-dd')
86
     * Native FORMAT: to_date('1997-11-06','yyyy-mm-dd')
89
     */
87
     */
90
    protected void appendDate(java.sql.Date date, Writer writer) throws IOException {
88
    protected void appendDate(java.sql.Date date, Writer writer) throws IOException {
91
        if (usesNativeSQL()) {
89
        if (usesNativeSQL()) {
Lines 114-121 Link Here
114
112
115
    /**
113
    /**
116
     * INTERNAL:
114
     * INTERNAL:
117
     *    Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format.
115
     * Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format.
118
     *    Native Format: to_date ('1997-11-06 10:35:45.0' , 'yyyy-mm-dd hh:mm:ss.n')
116
     * Native Format: to_date ('1997-11-06 10:35:45.0' , 'yyyy-mm-dd hh:mm:ss.n')
119
     */
117
     */
120
    protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException {
118
    protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException {
121
        if (usesNativeSQL()) {
119
        if (usesNativeSQL()) {
Lines 129-136 Link Here
129
127
130
    /**
128
    /**
131
     * INTERNAL:
129
     * INTERNAL:
132
     *    Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format.
130
     * Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format.
133
     *    Native Format: to_date ('1997-11-06 10:35:45.0' , 'yyyy-mm-dd hh:mm:ss.n')
131
     * Native Format: to_date ('1997-11-06 10:35:45.0' , 'yyyy-mm-dd hh:mm:ss.n')
134
     */
132
     */
135
    protected void appendCalendar(Calendar calendar, Writer writer) throws IOException {
133
    protected void appendCalendar(Calendar calendar, Writer writer) throws IOException {
136
        if (usesNativeSQL()) {
134
        if (usesNativeSQL()) {
Lines 172-183 Link Here
172
        fieldTypeMapping.put(String.class, new FieldTypeDefinition("VARCHAR2", 255));
170
        fieldTypeMapping.put(String.class, new FieldTypeDefinition("VARCHAR2", 255));
173
        fieldTypeMapping.put(Character.class, new FieldTypeDefinition("CHAR", 1));
171
        fieldTypeMapping.put(Character.class, new FieldTypeDefinition("CHAR", 1));
174
172
175
        fieldTypeMapping.put(Byte[].class, new FieldTypeDefinition("LONG RAW", false));
173
        fieldTypeMapping.put(Byte[].class, new FieldTypeDefinition("BLOB", false));
176
        fieldTypeMapping.put(Character[].class, new FieldTypeDefinition("LONG", false));
174
        fieldTypeMapping.put(Character[].class, new FieldTypeDefinition("CLOB", false));
177
        fieldTypeMapping.put(byte[].class, new FieldTypeDefinition("LONG RAW", false));
175
        fieldTypeMapping.put(byte[].class, new FieldTypeDefinition("BLOB", false));
178
        fieldTypeMapping.put(char[].class, new FieldTypeDefinition("LONG", false)); 
176
        fieldTypeMapping.put(char[].class, new FieldTypeDefinition("CLOB", false)); 
179
        fieldTypeMapping.put(java.sql.Blob.class, new FieldTypeDefinition("LONG RAW", false));
177
        fieldTypeMapping.put(java.sql.Blob.class, new FieldTypeDefinition("BLOB", false));
180
        fieldTypeMapping.put(java.sql.Clob.class, new FieldTypeDefinition("LONG", false));         
178
        fieldTypeMapping.put(java.sql.Clob.class, new FieldTypeDefinition("CLOB", false));         
181
179
182
        fieldTypeMapping.put(java.sql.Date.class, new FieldTypeDefinition("DATE", false));
180
        fieldTypeMapping.put(java.sql.Date.class, new FieldTypeDefinition("DATE", false));
183
        fieldTypeMapping.put(java.sql.Time.class, new FieldTypeDefinition("TIMESTAMP", false));
181
        fieldTypeMapping.put(java.sql.Time.class, new FieldTypeDefinition("TIMESTAMP", false));
Lines 430-436 Link Here
430
428
431
        values.put(Integer.class, new Integer(Integer.MAX_VALUE));
429
        values.put(Integer.class, new Integer(Integer.MAX_VALUE));
432
        values.put(Long.class, new Long(Long.MAX_VALUE));
430
        values.put(Long.class, new Long(Long.MAX_VALUE));
433
        values.put(Double.class, new Double((double)9.9999E125));
431
        values.put(Double.class, new Double(9.9999E125));
434
        values.put(Short.class, new Short(Short.MAX_VALUE));
432
        values.put(Short.class, new Short(Short.MAX_VALUE));
435
        values.put(Byte.class, new Byte(Byte.MAX_VALUE));
433
        values.put(Byte.class, new Byte(Byte.MAX_VALUE));
436
        values.put(Float.class, new Float(Float.MAX_VALUE));
434
        values.put(Float.class, new Float(Float.MAX_VALUE));
Lines 449-455 Link Here
449
447
450
        values.put(Integer.class, new Integer(Integer.MIN_VALUE));
448
        values.put(Integer.class, new Integer(Integer.MIN_VALUE));
451
        values.put(Long.class, new Long(Long.MIN_VALUE));
449
        values.put(Long.class, new Long(Long.MIN_VALUE));
452
        values.put(Double.class, new Double((double)-1E-129));
450
        values.put(Double.class, new Double(-1E-129));
453
        values.put(Short.class, new Short(Short.MIN_VALUE));
451
        values.put(Short.class, new Short(Short.MIN_VALUE));
454
        values.put(Byte.class, new Byte(Byte.MIN_VALUE));
452
        values.put(Byte.class, new Byte(Byte.MIN_VALUE));
455
        values.put(Float.class, new Float(Float.MIN_VALUE));
453
        values.put(Float.class, new Float(Float.MIN_VALUE));
Lines 460-468 Link Here
460
458
461
    /**
459
    /**
462
     * INTERNAL:
460
     * INTERNAL:
463
     *    Produce a DataReadQuery which updates(!) the sequence number in the db
461
     * Produce a DataReadQuery which updates(!) the sequence number in the db
464
     *  and returns it. Currently implemented on Oracle only.
462
     * and returns it. Currently implemented on Oracle only.
465
     *    @param sequenceName        Name known by Oracle to be a defined sequence
463
     * @param sequenceName Name known by Oracle to be a defined sequence
466
     */
464
     */
467
    public ValueReadQuery buildSelectQueryForSequenceObject(String seqName, Integer size) {
465
    public ValueReadQuery buildSelectQueryForSequenceObject(String seqName, Integer size) {
468
        return new ValueReadQuery("SELECT " + getQualifiedSequenceName(seqName) + ".NEXTVAL FROM DUAL");
466
        return new ValueReadQuery("SELECT " + getQualifiedSequenceName(seqName) + ".NEXTVAL FROM DUAL");
Lines 470-485 Link Here
470
468
471
    /**
469
    /**
472
     * INTERNAL:
470
     * INTERNAL:
473
     *  Though Oracle doesn't support identity it could be immitated,
471
     * Though Oracle doesn't support identity it could be immitated,
474
     *  see comment to setSupportsIdentity method.
472
     * see comment to setSupportsIdentity method.
475
     *  @param sequenceName        Name known by Oracle to be a defined sequence
473
     * @param sequenceName Name known by Oracle to be a defined sequence
476
     */
474
     */
477
    public ValueReadQuery buildSelectQueryForIdentity(String seqName, Integer size) {
475
    public ValueReadQuery buildSelectQueryForIdentity(String seqName, Integer size) {
478
        return new ValueReadQuery("SELECT " + getQualifiedSequenceName(seqName) + ".CURRVAL FROM DUAL");
476
        return new ValueReadQuery("SELECT " + getQualifiedSequenceName(seqName) + ".CURRVAL FROM DUAL");
479
    }
477
    }
480
478
481
    /**
479
    /**
482
     *  Prepend sequence name with table qualifier (if any)
480
     * Prepend sequence name with table qualifier (if any)
483
     */
481
     */
484
    protected String getQualifiedSequenceName(String seqName) {
482
    protected String getQualifiedSequenceName(String seqName) {
485
        if (getTableQualifier().equals("")) {
483
        if (getTableQualifier().equals("")) {
Lines 490-496 Link Here
490
    }
488
    }
491
489
492
    /**
490
    /**
493
     *  Create the outer join operator for this platform
491
     * Create the outer join operator for this platform
494
     */
492
     */
495
    protected ExpressionOperator operatorOuterJoin() {
493
    protected ExpressionOperator operatorOuterJoin() {
496
        ExpressionOperator result = new ExpressionOperator();
494
        ExpressionOperator result = new ExpressionOperator();
Lines 591-643 Link Here
591
    }
589
    }
592
590
593
    /**
591
    /**
594
     *  INTERNAL:
592
     * INTERNAL:
595
     *  Indicates whether the platform supports sequence objects.
593
     * Indicates whether the platform supports sequence objects.
596
     *  This method is to be used *ONLY* by sequencing classes
594
     * This method is to be used *ONLY* by sequencing classes
597
     */
595
     */
598
    public boolean supportsSequenceObjects() {
596
    public boolean supportsSequenceObjects() {
599
        return true;
597
        return true;
600
    }
598
    }
601
599
602
    /**
600
    /**
603
     *  INTERNAL:
601
     * INTERNAL:
604
     *  Indicates whether the platform supports identity.
602
     * Indicates whether the platform supports identity.
605
     *  This method is to be used *ONLY* by sequencing classes
603
     * This method is to be used *ONLY* by sequencing classes
606
     */
604
     */
607
    public boolean supportsIdentity() {
605
    public boolean supportsIdentity() {
608
        return supportsIdentity;
606
        return supportsIdentity;
609
    }
607
    }
610
608
611
    /**
609
    /**
612
     *  ADVANCED:
610
     * ADVANCED:
613
     *  Oracle db doesn't support identity.
611
     * Oracle db doesn't support identity.
614
     *  However it's possible to get identity-like behaviour
612
     * However it's possible to get identity-like behaviour
615
     *  using sequence in an insert trigger - that's the only 
613
     * using sequence in an insert trigger - that's the only 
616
     *  case when supportsIdentity should be set to true:
614
     * case when supportsIdentity should be set to true:
617
     *  in this case all the sequences that have shouldAcquireValueAfterInsert
615
     * in this case all the sequences that have shouldAcquireValueAfterInsert
618
     *  set to true will keep this setting (it would've been reversed in case
616
     * set to true will keep this setting (it would've been reversed in case
619
     *  identity is not supported).
617
     * identity is not supported).
620
     *  Note that with supportsIdentity==true attempt to create tables that have
618
     * Note that with supportsIdentity==true attempt to create tables that have
621
     *  identity fields will fail - Oracle doesn't support identity.
619
     * identity fields will fail - Oracle doesn't support identity.
622
     *  Therefore if there's table creation reqiured it should be done
620
     * Therefore if there's table creation reqiured it should be done
623
     *  with supportsIdentity==false, then set the flag to true and reset sequencing
621
     * with supportsIdentity==false, then set the flag to true and reset sequencing
624
     *  (or logout and login the session).
622
     * (or logout and login the session).
625
     */
623
     */
626
    public void setSupportsIdentity(boolean supportsIdentity) {
624
    public void setSupportsIdentity(boolean supportsIdentity) {
627
        this.supportsIdentity = supportsIdentity;
625
        this.supportsIdentity = supportsIdentity;
628
    }
626
    }
629
627
630
    /**
628
    /**
631
     *  INTERNAL
629
     * INTERNAL:
630
     * Return if database stored functions are supported.
632
     */
631
     */
633
    public boolean supportsStoredFunctions() {
632
    public boolean supportsStoredFunctions() {
634
        return true;
633
        return true;
635
    }
634
    }
636
635
637
    /**
636
    /**
638
      * Returns true if the database supports SQL syntax not to wait on a SELECT..FOR UPADTE
637
     * Returns true if the database supports SQL syntax not to wait on a SELECT..FOR UPADTE
639
      * (i.e. In Oracle adding NOWAIT to the end will accomplish this)
638
     * (i.e. In Oracle adding NOWAIT to the end will accomplish this)
640
      */
639
     */
641
    public boolean supportsSelectForUpdateNoWait() {
640
    public boolean supportsSelectForUpdateNoWait() {
642
        return true;
641
        return true;
643
    }
642
    }
Lines 680-685 Link Here
680
    private static final String END_FROM = ") a ";
679
    private static final String END_FROM = ") a ";
681
    private static final String MAX_ROW = "WHERE ROWNUM <= ";
680
    private static final String MAX_ROW = "WHERE ROWNUM <= ";
682
    private static final String MIN_ROW = ") WHERE rnum > ";
681
    private static final String MIN_ROW = ") WHERE rnum > ";
682
    
683
    /**
683
    /**
684
     * INTERNAL:
684
     * INTERNAL:
685
     * Print the SQL representation of the statement on a stream, storing the fields
685
     * Print the SQL representation of the statement on a stream, storing the fields
Lines 697-703 Link Here
697
        if ( !(this.shouldUseRownumFiltering()) || ( !(max>0) && !(firstRow>0) ) ){
697
        if ( !(this.shouldUseRownumFiltering()) || ( !(max>0) && !(firstRow>0) ) ){
698
            super.printSQLSelectStatement(call, printer,statement);
698
            super.printSQLSelectStatement(call, printer,statement);
699
            return;
699
            return;
700
        }else if ( max > 0 ){
700
        } else if ( max > 0 ){
701
            statement.setUseUniqueFieldAliases(true);
701
            statement.setUseUniqueFieldAliases(true);
702
            printer.printString(SELECT);
702
            printer.printString(SELECT);
703
            printer.printString(HINT);
703
            printer.printString(HINT);
Lines 709-715 Link Here
709
            printer.printParameter(DatabaseCall.MAXROW_FIELD);
709
            printer.printParameter(DatabaseCall.MAXROW_FIELD);
710
            printer.printString(MIN_ROW);
710
            printer.printString(MIN_ROW);
711
            printer.printParameter(DatabaseCall.FIRSTRESULT_FIELD);
711
            printer.printParameter(DatabaseCall.FIRSTRESULT_FIELD);
712
        }else {// firstRow>0
712
        } else {// firstRow>0
713
            statement.setUseUniqueFieldAliases(true);
713
            statement.setUseUniqueFieldAliases(true);
714
            printer.printString(SELECT);
714
            printer.printString(SELECT);
715
            printer.printString(FROM);
715
            printer.printString(FROM);
(-)foundation/eclipselink.extension.oracle.test/run/Testing Browser (Oracle).launch (+53 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.extension.oracle.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.extension.oracle.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.extension.oracle&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;AQAPI_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;SPATIAL_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XDB_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XML_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
35
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XMLPARSERV2_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
36
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
37
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
38
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
39
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-field-access-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
40
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-properties.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
41
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-annotation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
42
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-ddl-generation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
43
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-validation-failed-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
44
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-merge-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
45
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-only-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
46
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.extension.oracle.test/eclipselink-struct-converter-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
47
</listAttribute>
48
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
49
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
50
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.extension.oracle.test"/>
51
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
52
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.extension.oracle.test/run}"/>
53
</launchConfiguration>
(-)foundation/eclipselink.extension.oracle.test/run/Testing Browser (Oracle).launch (+53 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.extension.oracle.test/run&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.extension.oracle.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.extension.oracle&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;AQAPI_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;SPATIAL_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XDB_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XML_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
35
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;XMLPARSERV2_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
36
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
37
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
38
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
39
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-field-access-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
40
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-properties.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
41
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-annotation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
42
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-ddl-generation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
43
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-validation-failed-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
44
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-merge-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
45
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-only-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
46
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.extension.oracle.test/eclipselink-struct-converter-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
47
</listAttribute>
48
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
49
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
50
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.extension.oracle.test"/>
51
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
52
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.extension.oracle.test/run}"/>
53
</launchConfiguration>
(-)foundation/eclipselink.extension.oracle.test/src/org/eclipse/persistence/testing/tests/conversion/CMAndPlatformWrapper.java (-2 / +2 lines)
Lines 28-34 Link Here
28
        } else if (wrappedObj instanceof Oracle9Platform) {
28
        } else if (wrappedObj instanceof Oracle9Platform) {
29
            return ((Oracle9Platform)wrappedObj).getDataTypesConvertedFrom(aClass);
29
            return ((Oracle9Platform)wrappedObj).getDataTypesConvertedFrom(aClass);
30
        }
30
        }
31
        return null;
31
        return new Vector();
32
    }
32
    }
33
33
34
    public Vector getDataTypesConvertedTo(Class aClass) {
34
    public Vector getDataTypesConvertedTo(Class aClass) {
Lines 37-43 Link Here
37
        } else if (wrappedObj instanceof Oracle9Platform) {
37
        } else if (wrappedObj instanceof Oracle9Platform) {
38
            return ((Oracle9Platform)wrappedObj).getDataTypesConvertedTo(aClass);
38
            return ((Oracle9Platform)wrappedObj).getDataTypesConvertedTo(aClass);
39
        }
39
        }
40
        return null;
40
        return new Vector();
41
    }
41
    }
42
42
43
    public Object convertObject(Object object, Class aClass) {
43
    public Object convertObject(Object object, Class aClass) {
(-)foundation/eclipselink.extension.oracle.test/src/org/eclipse/persistence/testing/tests/unwrappedconnection/TestOracleConnection.java (-224 lines)
Lines 36-266 Link Here
36
    public TestOracleConnection(OracleConnection connection){
36
    public TestOracleConnection(OracleConnection connection){
37
        conn = connection;
37
        conn = connection;
38
    }
38
    }
39
    
40
    public Connection _getPC() {
41
        return conn._getPC();
42
    }
43
    public void applyConnectionAttributes(Properties arg0) throws SQLException {
44
        conn.applyConnectionAttributes(arg0);
45
        
46
    }
47
    public void archive(int arg0, int arg1, String arg2) throws SQLException {
48
        conn.archive(arg0, arg1, arg2);
49
    }
50
    
51
    public void close(int arg0) throws SQLException {
52
        conn.close(arg0);
53
    }
54
    public void close(Properties arg0) throws SQLException {
55
        conn.close(arg0);
56
    }
57
39
58
    public boolean getAutoClose() throws SQLException {
59
        return conn.getAutoClose();
60
    }
61
    public CallableStatement getCallWithKey(String arg0) throws SQLException {
62
        return conn.getCallWithKey(arg0);
63
    }
64
    public Properties getConnectionAttributes() throws SQLException {
65
        return conn.getConnectionAttributes();
66
    }
67
    
68
    public int getConnectionReleasePriority() throws SQLException {
69
        return conn.getConnectionReleasePriority();
70
    }
71
    
72
    public boolean getCreateStatementAsRefCursor() {
73
        return conn.getCreateStatementAsRefCursor();
74
    }
75
    
76
    public int getDefaultExecuteBatch() {
77
        return conn.getDefaultExecuteBatch();
78
    }
79
    
80
    public int getDefaultRowPrefetch() {
81
        return conn.getDefaultRowPrefetch();
82
    }
83
    
84
    public Object getDescriptor(String arg0) {
85
        return conn.getDescriptor(arg0);
86
    }
87
    public short getEndToEndECIDSequenceNumber() throws SQLException {
88
        return conn.getEndToEndECIDSequenceNumber();
89
    }
90
    public String[] getEndToEndMetrics() throws SQLException {
91
        return conn.getEndToEndMetrics();
92
    }
93
    public boolean getExplicitCachingEnabled() throws SQLException {
94
        return conn.getExplicitCachingEnabled();
95
    }
96
    public boolean getImplicitCachingEnabled() throws SQLException {
97
        return conn.getImplicitCachingEnabled();
98
    }
99
    public boolean getIncludeSynonyms() {
100
        return conn.getIncludeSynonyms();
101
    }
102
    public Object getJavaObject(String arg0) throws SQLException {
103
        return conn.getIncludeSynonyms();
104
    }
105
    public Properties getProperties() {
106
        return conn.getProperties();
107
    }
108
    public boolean getRemarksReporting() {
109
        return conn.getRemarksReporting();
110
    }
111
    public boolean getRestrictGetTables() {
112
        return conn.getRestrictGetTables();
113
    }
114
    public String getSessionTimeZone() {
115
        return conn.getSessionTimeZone();
116
    }
117
    public String getSQLType(Object arg0) throws SQLException {
118
        return conn.getSQLType(arg0);
119
    }
120
    public int getStatementCacheSize() throws SQLException {
121
        return conn.getStatementCacheSize();
122
    }
123
    public PreparedStatement getStatementWithKey(String arg0) throws SQLException {
124
        return conn.getStatementWithKey(arg0);
125
    }
126
    public int getStmtCacheSize() {
127
        return conn.getStmtCacheSize();
128
    }
129
    public short getStructAttrCsId() throws SQLException {
130
        return conn.getStructAttrCsId();
131
    }
132
    public Properties getUnMatchedConnectionAttributes() throws SQLException {
133
        return conn.getUnMatchedConnectionAttributes();
134
    }
135
    public String getUserName() throws SQLException {
136
        return conn.getUserName();
137
    }
138
    public boolean getUsingXAFlag() {
139
        return conn.getUsingXAFlag();
140
    }
141
    public boolean getXAErrorFlag() {
142
        return conn.getXAErrorFlag();
143
    }
144
    public boolean isLogicalConnection() {
145
        return conn.isLogicalConnection();
146
    }
147
    public boolean isProxySession() {
148
        return conn.isProxySession();
149
    }
150
    public void openProxySession(int arg0, Properties arg1) throws SQLException {
151
        conn.openProxySession(arg0, arg1);
152
    }
153
    public void oracleReleaseSavepoint(OracleSavepoint arg0) throws SQLException {
154
        conn.oracleReleaseSavepoint(arg0);
155
    }
156
    public void oracleRollback(OracleSavepoint arg0) throws SQLException {
157
        conn.oracleRollback(arg0);
158
    }
159
    public OracleSavepoint oracleSetSavepoint() throws SQLException {
160
        return conn.oracleSetSavepoint();
161
    }
162
    public OracleSavepoint oracleSetSavepoint(String arg0) throws SQLException {
163
        return conn.oracleSetSavepoint(arg0);
164
    }
165
    public oracle.jdbc.internal.OracleConnection physicalConnectionWithin() {
166
        return conn.physicalConnectionWithin();
167
    }
168
    public int pingDatabase(int arg0) throws SQLException {
169
        return conn.pingDatabase(arg0);
170
    }
171
    public CallableStatement prepareCallWithKey(String arg0) throws SQLException {
172
        return conn.prepareCallWithKey(arg0);
173
    }
174
    public PreparedStatement prepareStatementWithKey(String arg0) throws SQLException {
175
        return conn.prepareStatementWithKey(arg0);
176
    }
177
    public void purgeExplicitCache() throws SQLException {
178
        conn.purgeExplicitCache();
179
    }
180
    public void purgeImplicitCache() throws SQLException {
181
        conn.purgeImplicitCache();
182
    }
183
    public void putDescriptor(String arg0, Object arg1) throws SQLException {
184
        conn.putDescriptor(arg0, arg1);
185
    }
186
    public void registerConnectionCacheCallback(OracleConnectionCacheCallback arg0, Object arg1, int arg2) throws SQLException {
187
        conn.registerConnectionCacheCallback(arg0, arg1, arg2);
188
    }
189
    public void registerSQLType(String arg0, Class arg1) throws SQLException {
190
        conn.registerSQLType(arg0, arg1);
191
    }
192
    public void registerSQLType(String arg0, String arg1) throws SQLException {
193
        conn.registerSQLType(arg0, arg1);
194
    }
195
    public void registerTAFCallback(OracleOCIFailover arg0, Object arg1) throws SQLException {
196
        conn.registerTAFCallback(arg0, arg1);
197
    }
198
    public void setAutoClose(boolean arg0) throws SQLException {
199
        conn.setAutoClose(arg0);
200
    }
201
    public void setConnectionReleasePriority(int arg0) throws SQLException {
202
        conn.setConnectionReleasePriority(arg0);
203
    }
204
    public void setCreateStatementAsRefCursor(boolean arg0) {
205
        conn.setCreateStatementAsRefCursor(arg0);
206
    }
207
    public void setDefaultExecuteBatch(int arg0) throws SQLException {
208
        conn.setDefaultExecuteBatch(arg0);
209
    }
210
    public void setDefaultRowPrefetch(int arg0) throws SQLException {
211
        conn.setDefaultRowPrefetch(arg0);
212
    }
213
    public void setEndToEndMetrics(String[] arg0, short arg1) throws SQLException {
214
        conn.setEndToEndMetrics(arg0, arg1);
215
    }
216
    public void setExplicitCachingEnabled(boolean arg0) throws SQLException {
217
        conn.setExplicitCachingEnabled(arg0);
218
    }
219
    public void setImplicitCachingEnabled(boolean arg0) throws SQLException {
220
        conn.setImplicitCachingEnabled(arg0);
221
    }
222
    public void setIncludeSynonyms(boolean arg0) {
223
        conn.setIncludeSynonyms(arg0);
224
    }
225
    public void setPlsqlWarnings(String arg0) throws SQLException {
226
    }
227
    public void setRemarksReporting(boolean arg0) {
228
        conn.setRemarksReporting(arg0);
229
    }
230
    public void setRestrictGetTables(boolean arg0) {
231
        conn.setRestrictGetTables(arg0);
232
    }
233
    public void setSessionTimeZone(String arg0) throws SQLException {
234
        conn.setSessionTimeZone(arg0);
235
    }
236
    public void setStatementCacheSize(int arg0) throws SQLException {
237
        conn.setStatementCacheSize(arg0);
238
    }
239
    public void setStmtCacheSize(int arg0, boolean arg1) throws SQLException {
240
        conn.setStmtCacheSize(arg0, arg1);
241
    }
242
    public void setStmtCacheSize(int arg0) throws SQLException {
243
        conn.setStmtCacheSize(arg0);
244
    }
245
    public void setUsingXAFlag(boolean arg0) {
246
        conn.setUsingXAFlag(arg0);
247
    }
248
    public void setWrapper(OracleConnection arg0) {
249
        conn.setWrapper(arg0);
250
    }
251
    public void setXAErrorFlag(boolean arg0) {
252
        conn.setXAErrorFlag(arg0);
253
    }
254
    public void shutdown(int arg0) throws SQLException {
255
        conn.shutdown(arg0);
256
    }
257
    public void startup(String arg0, int arg1) throws SQLException {
258
        conn.startup(arg0, arg1);
259
    }
260
    public OracleConnection unwrap() {
261
        return conn.unwrap();
262
    }
263
264
    public void clearWarnings() throws SQLException {
40
    public void clearWarnings() throws SQLException {
265
       conn.clearWarnings();
41
       conn.clearWarnings();
266
    }
42
    }
(-)foundation/eclipselink.extension.oracle/src/org/eclipse/persistence/platform/database/oracle/Oracle8Platform.java (-20 / +21 lines)
Lines 33-40 Link Here
33
 * Supports certain new Oracle 8 data types, and usage of certain Oracle JDBC specific APIs.
33
 * Supports certain new Oracle 8 data types, and usage of certain Oracle JDBC specific APIs.
34
 * <p> Supports Oracle thin JDBC driver LOB >4k binding workaround.
34
 * <p> Supports Oracle thin JDBC driver LOB >4k binding workaround.
35
 * <p> Creates BLOB and CLOB type for byte[] and char[] for table creation.
35
 * <p> Creates BLOB and CLOB type for byte[] and char[] for table creation.
36
 * <p> Supports object-relational data-type creation.
36
 */
37
 */
37
public class Oracle8Platform extends org.eclipse.persistence.platform.database.oracle.OraclePlatform {
38
public class Oracle8Platform extends OraclePlatform {
38
39
39
    /** Locator is required for Oracle thin driver to write LOB value exceeds the limits */
40
    /** Locator is required for Oracle thin driver to write LOB value exceeds the limits */
40
    protected boolean usesLocatorForLOBWrite = true;
41
    protected boolean usesLocatorForLOBWrite = true;
Lines 87-99 Link Here
87
    }
88
    }
88
89
89
    /**
90
    /**
90
     *  INTERNAL
91
     * INTERNAL
91
     *    Used by SQLCall.translate(..)
92
     * Used by SQLCall.translate(..)
92
     *  Typically there is no field translation (and this is default implementation).
93
     * Typically there is no field translation (and this is default implementation).
93
     *  However on different platforms (Oracle) there are cases such that the values for
94
     * However on different platforms (Oracle) there are cases such that the values for
94
     *  binding and appending may be different (BLOB, CLOB).
95
     * binding and appending may be different (BLOB, CLOB).
95
     *  In these special cases the method returns a wrapper object
96
     * In these special cases the method returns a wrapper object
96
     *  which knows whether it should be bound or appended and knows how to do that.
97
     * which knows whether it should be bound or appended and knows how to do that.
97
     */
98
     */
98
    public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind) {
99
    public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind) {
99
        Class type = field.getType();
100
        Class type = field.getType();
Lines 126-138 Link Here
126
    }
127
    }
127
128
128
    /**
129
    /**
129
     *  INTERNAL
130
     * INTERNAL
130
     *    Used by SQLCall.appendModify(..)
131
     * Used by SQLCall.appendModify(..)
131
     *  If the field should be passed to customModifyInDatabaseCall, retun true,
132
     * If the field should be passed to customModifyInDatabaseCall, retun true,
132
     *  otherwise false.
133
     * otherwise false.
133
     *  Methods shouldCustomModifyInDatabaseCall and customModifyInDatabaseCall should be
134
     * Methods shouldCustomModifyInDatabaseCall and customModifyInDatabaseCall should be
134
     *  kept in sync: shouldCustomModifyInDatabaseCall should return true if and only if the field
135
     * kept in sync: shouldCustomModifyInDatabaseCall should return true if and only if the field
135
     *  is handled by customModifyInDatabaseCall.
136
     * is handled by customModifyInDatabaseCall.
136
     */
137
     */
137
    public boolean shouldUseCustomModifyForCall(DatabaseField field) {
138
    public boolean shouldUseCustomModifyForCall(DatabaseField field) {
138
        if (shouldUseLocatorForLOBWrite()) {
139
        if (shouldUseLocatorForLOBWrite()) {
Lines 217-227 Link Here
217
    }
218
    }
218
219
219
    /**
220
    /**
220
    * PUBLIC:
221
     * PUBLIC:
221
    * Set the BLOB/CLOB value limits on thin driver. The default value is 0.
222
     * Set the BLOB/CLOB value limits on thin driver. The default value is 0.
222
    * If usesLocatorForLOBWrite is true, locator will be used in case the
223
     * If usesLocatorForLOBWrite is true, locator will be used in case the
223
    * lob's size is larger than lobValueLimit.
224
     * lob's size is larger than lobValueLimit.
224
    */
225
     */
225
    public void setLobValueLimits(int lobValueLimits) {
226
    public void setLobValueLimits(int lobValueLimits) {
226
        this.lobValueLimits = lobValueLimits;
227
        this.lobValueLimits = lobValueLimits;
227
    }
228
    }
(-)foundation/eclipselink.extension.oracle/src/org/eclipse/persistence/platform/database/oracle/Oracle9Platform.java (-28 / +36 lines)
Lines 61-67 Link Here
61
 * <p> Supports binding NCHAR, NVARCHAR, NCLOB types as required by Oracle JDBC drivers.
61
 * <p> Supports binding NCHAR, NVARCHAR, NCLOB types as required by Oracle JDBC drivers.
62
 * <p> Supports Oracle JDBC TIMESTAMP, TIMESTAMPTZ, TIMESTAMPLTZ types.
62
 * <p> Supports Oracle JDBC TIMESTAMP, TIMESTAMPTZ, TIMESTAMPLTZ types.
63
 */
63
 */
64
public class Oracle9Platform extends org.eclipse.persistence.platform.database.oracle.Oracle8Platform {
64
public class Oracle9Platform extends Oracle8Platform {
65
65
66
    public static final Class NCHAR = NCharacter.class;
66
    public static final Class NCHAR = NCharacter.class;
67
    public static final Class NSTRING = NString.class;
67
    public static final Class NSTRING = NString.class;
Lines 164-176 Link Here
164
    }
164
    }
165
165
166
    /**
166
    /**
167
     *  INTERNAL
167
     * INTERNAL
168
     *    Used by SQLCall.appendModify(..)
168
     * Used by SQLCall.appendModify(..)
169
     *  If the field should be passed to customModifyInDatabaseCall, retun true,
169
     * If the field should be passed to customModifyInDatabaseCall, retun true,
170
     *  otherwise false.
170
     * otherwise false.
171
     *  Methods shouldCustomModifyInDatabaseCall and customModifyInDatabaseCall should be
171
     * Methods shouldCustomModifyInDatabaseCall and customModifyInDatabaseCall should be
172
     *  kept in sync: shouldCustomModifyInDatabaseCall should return true if and only if the field
172
     * kept in sync: shouldCustomModifyInDatabaseCall should return true if and only if the field
173
     *  is handled by customModifyInDatabaseCall.
173
     * is handled by customModifyInDatabaseCall.
174
     */
174
     */
175
    public boolean shouldUseCustomModifyForCall(DatabaseField field) {
175
    public boolean shouldUseCustomModifyForCall(DatabaseField field) {
176
        Class type = field.getType();
176
        Class type = field.getType();
Lines 229-235 Link Here
229
229
230
    /**
230
    /**
231
     * INTERNAL:
231
     * INTERNAL:
232
     * Allow for conversion from the Oralce type to the Java type.
232
     * Allow for conversion from the Oracle type to the Java type.
233
     */
233
     */
234
    public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException, DatabaseException {
234
    public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException, DatabaseException {
235
        if ((javaClass == null) || ((sourceObject != null) && (sourceObject.getClass() == javaClass))) {
235
        if ((javaClass == null) || ((sourceObject != null) && (sourceObject.getClass() == javaClass))) {
Lines 470-480 Link Here
470
    }
470
    }
471
    
471
    
472
    /**
472
    /**
473
     *  INTERNAL:
473
     * INTERNAL:
474
     *  Used by SQLCall.translate(..)
474
     * Used by SQLCall.translate(..)
475
     *  The binding *must* be performed (NCHAR, NSTRING, NCLOB).
475
     * The binding *must* be performed (NCHAR, NSTRING, NCLOB).
476
     *  In these special cases the method returns a wrapper object
476
     * In these special cases the method returns a wrapper object
477
     *  which knows whether it should be bound or appended and knows how to do that.
477
     * which knows whether it should be bound or appended and knows how to do that.
478
     */
478
     */
479
    public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind) {
479
    public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind) {
480
        Class type = field.getType();
480
        Class type = field.getType();
Lines 610-623 Link Here
610
        }
610
        }
611
    }
611
    }
612
    
612
    
613
     /**
613
    /**
614
      * INTERNAL: This gets called on each iteration to add parameters to the batch
614
     * INTERNAL: This gets called on each iteration to add parameters to the batch
615
      * Needs to be implemented so that it returns the number of rows successfully modified
615
     * Needs to be implemented so that it returns the number of rows successfully modified
616
      * by this statement for optimistic locking purposes (if useNativeBatchWriting is enabled, and 
616
     * by this statement for optimistic locking purposes (if useNativeBatchWriting is enabled, and 
617
      * the call uses optimistic locking).  Is used with parameterized SQL 
617
     * the call uses optimistic locking).  Is used with parameterized SQL 
618
      * 
618
     * 
619
      * @return - number of rows modified/deleted by this statement if it was executed (0 if it wasn't)
619
     * @return - number of rows modified/deleted by this statement if it was executed (0 if it wasn't)
620
      */
620
     */
621
    public int addBatch(PreparedStatement statement) throws java.sql.SQLException {
621
    public int addBatch(PreparedStatement statement) throws java.sql.SQLException {
622
        if (usesNativeBatchWriting()){
622
        if (usesNativeBatchWriting()){
623
            return statement.executeUpdate(); 
623
            return statement.executeUpdate(); 
Lines 626-637 Link Here
626
        }
626
        }
627
    }
627
    }
628
    
628
    
629
     /**
629
    /**
630
      * INTERNAL: Allows setting the batch size on the statement
630
     * INTERNAL: Allows setting the batch size on the statement
631
      *  Is used with parameterized SQL, and should only be passed in prepared statements
631
     * Is used with parameterized SQL, and should only be passed in prepared statements
632
      * 
632
     * 
633
      * @return - statement to be used for batch writing
633
     * @return - statement to be used for batch writing
634
      */
634
     */
635
    public Statement prepareBatchStatement(Statement statement) throws java.sql.SQLException {
635
    public Statement prepareBatchStatement(Statement statement) throws java.sql.SQLException {
636
        if (usesNativeBatchWriting()){
636
        if (usesNativeBatchWriting()){
637
            //add max statement setting
637
            //add max statement setting
Lines 695-698 Link Here
695
            return super.unwrapOracleConnection(connection);
695
            return super.unwrapOracleConnection(connection);
696
        }
696
        }
697
    }
697
    }
698
    
699
    /**
700
     * PUBLIC:
701
     * Return is this is the Oracle 9 platform. 
702
     */
703
    public boolean isOracle9() {
704
	   return true;
705
    }
698
}
706
}
(-)jpa/eclipselink.jpa.test/build.properties (+4 lines)
Lines 8-19 Link Here
8
8
9
# do not edit the properties below
9
# do not edit the properties below
10
eclipselink.core.lib=../eclipselink.core.lib
10
eclipselink.core.lib=../eclipselink.core.lib
11
eclipselink.core.lib.trunk=../../foundation/eclipselink.core.lib
11
eclipselink.core.depend=activation.jar,connector.jar,ejb.jar,jms.jar,jsr173_1.0_api.jar,jta.jar,mail.jar,persistence.jar
12
eclipselink.core.depend=activation.jar,connector.jar,ejb.jar,jms.jar,jsr173_1.0_api.jar,jta.jar,mail.jar,persistence.jar
12
eclipselink.core=../eclipselink.core
13
eclipselink.core=../eclipselink.core
14
eclipselink.core.trunk=../../foundation/eclipselink.core
13
eclipselink.jpa=../eclipselink.jpa
15
eclipselink.jpa=../eclipselink.jpa
14
eclipselink.core.test=../eclipselink.core.test
16
eclipselink.core.test=../eclipselink.core.test
17
eclipselink.core.test.trunk=../../foundation/eclipselink.core.test
15
eclipselink.jpa.test=.
18
eclipselink.jpa.test=.
16
19
17
src.dir=src
20
src.dir=src
18
classes.dir=classes
21
classes.dir=classes
22
run.dir=run
19
23
(-)jpa/eclipselink.jpa.test/build.xml (-24 / +40 lines)
Lines 1-4 Link Here
1
<project name="Eclipse Persistence Services Testing" default="package" basedir=".">
1
<project name="Eclipse Persistence Services Testing" default="all" basedir=".">
2
2
3
    <property file="${user.home}/build.properties"/>
3
    <property file="${user.home}/build.properties"/>
4
    <property file="./build.properties"/>
4
    <property file="./build.properties"/>
Lines 6-33 Link Here
6
6
7
    <property name="test.properties" location="${eclipselink.jpa.test}/test.properties"/>
7
    <property name="test.properties" location="${eclipselink.jpa.test}/test.properties"/>
8
    <property file="${test.properties}"/>
8
    <property file="${test.properties}"/>
9
	
9
10
    <property name="test.class" value="org.eclipse.persistence.testing.tests.jpa.FullRegressionTestSuite"/>
10
    <property name="test.class" value="org.eclipse.persistence.testing.tests.jpa.FullRegressionTestSuite"/>
11
    <property name="eclipselink.logging.level" value="INFO"/>
11
    <property name="eclipselink.logging.level" value="INFO"/>
12
	
12
13
    <available file="${eclipselink.core.trunk}" type="dir" property="is.trunk"/>
14
15
    <target name="config-trunk" if="is.trunk">
16
        <path id="compile.path">
17
            <pathelement path="${eclipselink.core.trunk}/${classes.dir}"/>
18
            <pathelement path="${eclipselink.jpa}/${classes.dir}"/>
19
            <pathelement path="${eclipselink.core.test.trunk}/${classes.dir}"/>
20
            <fileset
21
                dir="${eclipselink.core.lib.trunk}"
22
                includes="${eclipselink.core.depend}"/>
23
            <pathelement path="${eclipselink.jar}"/>
24
            <pathelement path="${junit.lib}"/>
25
            <pathelement path="${eclipselink.core.lib.trunk}/eclipselink-antlr.jar"/>
26
            <pathelement path="${eclipselink.core.lib.trunk}/eclipselink-asm.jar"/>
27
        </path>
28
    </target>
29
30
    <target name="config-flat" unless="is.trunk">
31
        <path id="compile.path">
32
            <pathelement path="${eclipselink.core}/${classes.dir}"/>
33
            <pathelement path="${eclipselink.jpa}/${classes.dir}"/>
34
            <pathelement path="${eclipselink.core.test}/${classes.dir}"/>
35
            <fileset
36
                dir="${eclipselink.core.lib}"
37
                includes="${eclipselink.core.depend}"/>
38
            <pathelement path="${eclipselink.jar}"/>
39
            <pathelement path="${junit.lib}"/>
40
            <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
41
            <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
42
        </path>
43
    </target>
44
13
    <!-- all -->
45
    <!-- all -->
14
    <target name="all" depends="clean, init, compile, package" description="build EclipseLink testing jars"/>
46
    <target name="all" depends="clean, init, compile, package" description="build EclipseLink testing jars"/>
15
47
16
    <path id="compile.path">
17
        <pathelement path="${eclipselink.core}/${classes.dir}"/>
18
        <pathelement path="${eclipselink.jpa}/${classes.dir}"/>
19
        <pathelement path="${eclipselink.core.test}/${classes.dir}"/>
20
        <fileset
21
            dir="${eclipselink.core.lib}"
22
            includes="${eclipselink.core.depend}"/>
23
        <pathelement path="${eclipselink.jar}"/>
24
        <pathelement path="${junit.lib}"/>
25
        <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
26
        <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
27
    </path>
28
	
29
    <path id="run.classpath">
48
    <path id="run.classpath">
30
    	<pathelement path="${jdbc.driver.jar}"/>
49
        <pathelement path="${jdbc.driver.jar}"/>
31
        <pathelement path="${eclipselink.jpa.test}/${eclipselink.tests.jar}"/>
50
        <pathelement path="${eclipselink.jpa.test}/${eclipselink.tests.jar}"/>
32
        <pathelement path="${eclipselink.jpa.test}/${eclipselink-annotation-model}.jar"/>
51
        <pathelement path="${eclipselink.jpa.test}/${eclipselink-annotation-model}.jar"/>
33
        <pathelement path="${eclipselink.jpa.test}/${eclipselink-ddl-generation-model}.jar"/>
52
        <pathelement path="${eclipselink.jpa.test}/${eclipselink-ddl-generation-model}.jar"/>
Lines 52-58 Link Here
52
    </target>
71
    </target>
53
72
54
    <!-- compile --> 
73
    <!-- compile --> 
55
    <target name="compile" depends="init" description="compile EclipseLink tesing">  
74
    <target name="compile" depends="init, config-trunk, config-flat" description="compile EclipseLink tesing">  
56
        <javac srcdir="${eclipselink.jpa.test}/${src.dir}" 
75
        <javac srcdir="${eclipselink.jpa.test}/${src.dir}" 
57
               destdir="${eclipselink.jpa.test}/${classes.dir}"
76
               destdir="${eclipselink.jpa.test}/${classes.dir}"
58
               includes="org/eclipse/persistence/testing/**"
77
               includes="org/eclipse/persistence/testing/**"
Lines 66-78 Link Here
66
            </classpath>
85
            </classpath>
67
        </javac>
86
        </javac>
68
    </target>
87
    </target>
69
	
88
70
    <target name="package" depends="package.annotation, package.ddl, package.xml-only, package.xml-merge, package.validation-failed, package.jpa-advanced-field-access, package.jpa-advanced-properties" description="build EclipseLink jar">
89
    <target name="package" depends="package.annotation, package.ddl, package.xml-only, package.xml-merge, package.validation-failed, package.jpa-advanced-field-access, package.jpa-advanced-properties" description="build EclipseLink jar">
71
        <jar jarfile="${eclipselink.jpa.test}/${eclipselink.tests.jar}">
90
        <jar jarfile="${eclipselink.jpa.test}/${eclipselink.tests.jar}">
72
           <fileset dir="${eclipselink.jpa.test}/${classes.dir}"
91
           <fileset dir="${eclipselink.jpa.test}/${classes.dir}"
73
                    includes="org/eclipse/persistence/testing/framework/**/*.class,
92
                    includes="org/eclipse/persistence/testing/framework/**/*.class,
74
                        org/eclipse/persistence/testing/tests/**/*.class"/>
93
                        org/eclipse/persistence/testing/tests/**/*.class"/>
75
      </jar>
94
        </jar>
76
    </target>
95
    </target>
77
96
78
    <target name="package.annotation" depends="">
97
    <target name="package.annotation" depends="">
Lines 186-192 Link Here
186
        </jar>
205
        </jar>
187
    </target>
206
    </target>
188
207
189
190
    <target name="test" depends="package">
208
    <target name="test" depends="package">
191
        <echo>Running test with ${test.properties} on ${db.url}</echo>
209
        <echo>Running test with ${test.properties} on ${db.url}</echo>
192
        <junit printsummary="yes" haltonfailure="yes" failureproperty="junit.failed" fork="yes" showoutput="true" maxmemory="256m">
210
        <junit printsummary="yes" haltonfailure="yes" failureproperty="junit.failed" fork="yes" showoutput="true" maxmemory="256m">
Lines 202-211 Link Here
202
            </test>
220
            </test>
203
        </junit>
221
        </junit>
204
        <fail message="Some of the junit tests failed.  See the ${result.file} file for details." if="junit.failed"/>
222
        <fail message="Some of the junit tests failed.  See the ${result.file} file for details." if="junit.failed"/>
223
    </target>
205
224
206
    </target>
207
	
208
	
209
    <target name="clean" description="Clean the build">
225
    <target name="clean" description="Clean the build">
210
        <delete includeEmptyDirs="true" failonerror="false">
226
        <delete includeEmptyDirs="true" failonerror="false">
211
            <fileset dir="${eclipselink.jpa.test}/${classes.dir}"/>
227
            <fileset dir="${eclipselink.jpa.test}/${classes.dir}"/>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/jndi.properties (+6 lines)
Line 0 Link Here
1
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
2
java.naming.security.principal=fmwadmin
3
java.naming.security.credentials=welcome1
4
5
6
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/application.xml (+12 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
3
<application>
4
    <display-name>field-access</display-name>
5
    <description>field-access</description>
6
    <module>
7
        <ejb>jpaadvancedfieldaccess_ejb.jar</ejb>
8
    </module>
9
    <module>
10
        <java>jpaadvancedfieldaccess_client.jar</java>
11
    </module>
12
</application>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/persistence.xml (+9 lines)
Line 0 Link Here
1
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
2
    <persistence-unit name="fieldaccess">
3
        <jta-data-source>jdbc/OracleDS</jta-data-source>
4
        <properties>
5
            <property name="eclipselink.logging.level" value="%%loglevel%%"/>
6
            <property name="eclipselink.logging.logger" value="DefaultLogger"/>
7
        </properties>
8
    </persistence-unit>
9
</persistence>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/ejb-jar.xml (+24 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5
          http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
6
          version="3.0">
7
    <enterprise-beans>
8
        <session>
9
            <ejb-name>TestRunner</ejb-name>
10
            <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
11
            <ejb-class>org.eclipse.persistence.testing.framework.server.TestRunnerBean</ejb-class>
12
            <session-type>Stateless</session-type>
13
            <transaction-type>Bean</transaction-type>
14
            <persistence-context-ref>
15
                <persistence-context-ref-name>persistence/fieldaccess/entity-manager</persistence-context-ref-name>
16
                <persistence-unit-name>fieldaccess</persistence-unit-name>
17
            </persistence-context-ref>
18
            <persistence-unit-ref>
19
                <persistence-unit-ref-name>persistence/fieldaccess/factory</persistence-unit-ref-name>
20
                <persistence-unit-name>fieldaccess</persistence-unit-name>
21
            </persistence-unit-ref>
22
        </session>
23
    </enterprise-beans>
24
</ejb-jar>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/application-client.xml (+11 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
3
4
<application-client>
5
    <display-name>field-access</display-name>
6
    <ejb-ref>
7
        <ejb-ref-name>ejb/TestRunner</ejb-ref-name>
8
        <ejb-ref-type>Session</ejb-ref-type>
9
        <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
10
    </ejb-ref>
11
</application-client>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/application-client.xml (+11 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
3
4
<application-client>
5
    <display-name>field-access</display-name>
6
    <ejb-ref>
7
        <ejb-ref-name>ejb/TestRunner</ejb-ref-name>
8
        <ejb-ref-type>Session</ejb-ref-type>
9
        <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
10
    </ejb-ref>
11
</application-client>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/application.xml (+12 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
3
<application>
4
    <display-name>field-access</display-name>
5
    <description>field-access</description>
6
    <module>
7
        <ejb>jpaadvancedfieldaccess_ejb.jar</ejb>
8
    </module>
9
    <module>
10
        <java>jpaadvancedfieldaccess_client.jar</java>
11
    </module>
12
</application>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/ejb-jar.xml (+24 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5
          http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
6
          version="3.0">
7
    <enterprise-beans>
8
        <session>
9
            <ejb-name>TestRunner</ejb-name>
10
            <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
11
            <ejb-class>org.eclipse.persistence.testing.framework.server.TestRunnerBean</ejb-class>
12
            <session-type>Stateless</session-type>
13
            <transaction-type>Bean</transaction-type>
14
            <persistence-context-ref>
15
                <persistence-context-ref-name>persistence/fieldaccess/entity-manager</persistence-context-ref-name>
16
                <persistence-unit-name>fieldaccess</persistence-unit-name>
17
            </persistence-context-ref>
18
            <persistence-unit-ref>
19
                <persistence-unit-ref-name>persistence/fieldaccess/factory</persistence-unit-ref-name>
20
                <persistence-unit-name>fieldaccess</persistence-unit-name>
21
            </persistence-unit-ref>
22
        </session>
23
    </enterprise-beans>
24
</ejb-jar>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/jndi.properties (+6 lines)
Line 0 Link Here
1
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
2
java.naming.security.principal=fmwadmin
3
java.naming.security.credentials=welcome1
4
5
6
(-)jpa/eclipselink.jpa.test/resource/eclipselink-advanced-field-access-model/server/persistence.xml (+9 lines)
Line 0 Link Here
1
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
2
    <persistence-unit name="fieldaccess">
3
        <jta-data-source>jdbc/OracleDS</jta-data-source>
4
        <properties>
5
            <property name="eclipselink.logging.level" value="%%loglevel%%"/>
6
            <property name="eclipselink.logging.logger" value="DefaultLogger"/>
7
        </properties>
8
    </persistence-unit>
9
</persistence>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/jndi.properties (+6 lines)
Line 0 Link Here
1
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
2
java.naming.security.principal=fmwadmin
3
java.naming.security.credentials=welcome1
4
5
6
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/application.xml (+12 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
3
<application>
4
    <display-name>session-bean</display-name>
5
    <description>session-bean</description>
6
    <module>
7
        <ejb>jpasessionbean_ejb.jar</ejb>
8
    </module>
9
    <module>
10
        <java>jpasessionbean_client.jar</java>
11
    </module>
12
</application>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/persistence.xml (+9 lines)
Line 0 Link Here
1
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
2
    <persistence-unit name="sessionbean">
3
        <jta-data-source>jdbc/OracleDS</jta-data-source>
4
        <properties>
5
            <property name="eclipselink.logging.level" value="%%loglevel%%"/>
6
            <property name="eclipselink.logging.logger" value="DefaultLogger"/>
7
        </properties>
8
    </persistence-unit>
9
</persistence>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/ejb-jar.xml (+29 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5
          http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
6
          version="3.0">
7
    <enterprise-beans>
8
        <session>
9
            <ejb-name>TestRunner</ejb-name>
10
            <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
11
            <ejb-class>org.eclipse.persistence.testing.framework.server.TestRunnerBean</ejb-class>
12
            <session-type>Stateless</session-type>
13
            <transaction-type>Bean</transaction-type>
14
            <ejb-ref>
15
                <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
16
                <ejb-ref-type>Session</ejb-ref-type>
17
                <remote>org.eclipse.persistence.testing.models.jpa.sessionbean.EmployeeService</remote>
18
            </ejb-ref>
19
            <persistence-context-ref>
20
                <persistence-context-ref-name>persistence/sessionbean/entity-manager</persistence-context-ref-name>
21
                <persistence-unit-name>sessionbean</persistence-unit-name>
22
            </persistence-context-ref>
23
            <persistence-unit-ref>
24
                <persistence-unit-ref-name>persistence/sessionbean/factory</persistence-unit-ref-name>
25
                <persistence-unit-name>sessionbean</persistence-unit-name>
26
            </persistence-unit-ref>
27
        </session>
28
    </enterprise-beans>
29
</ejb-jar>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/application-client.xml (+16 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
3
4
<application-client>
5
    <display-name>session-bean</display-name>
6
    <ejb-ref>
7
        <ejb-ref-name>ejb/TestRunner</ejb-ref-name>
8
        <ejb-ref-type>Session</ejb-ref-type>
9
        <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
10
    </ejb-ref>
11
    <ejb-ref>
12
        <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
13
        <ejb-ref-type>Session</ejb-ref-type>
14
        <remote>org.eclipse.persistence.testing.models.jpa.sessionbean.EmployeeService</remote>
15
    </ejb-ref>
16
</application-client>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/application-client.xml (+16 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
3
4
<application-client>
5
    <display-name>session-bean</display-name>
6
    <ejb-ref>
7
        <ejb-ref-name>ejb/TestRunner</ejb-ref-name>
8
        <ejb-ref-type>Session</ejb-ref-type>
9
        <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
10
    </ejb-ref>
11
    <ejb-ref>
12
        <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
13
        <ejb-ref-type>Session</ejb-ref-type>
14
        <remote>org.eclipse.persistence.testing.models.jpa.sessionbean.EmployeeService</remote>
15
    </ejb-ref>
16
</application-client>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/application.xml (+12 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
3
<application>
4
    <display-name>session-bean</display-name>
5
    <description>session-bean</description>
6
    <module>
7
        <ejb>jpasessionbean_ejb.jar</ejb>
8
    </module>
9
    <module>
10
        <java>jpasessionbean_client.jar</java>
11
    </module>
12
</application>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/ejb-jar.xml (+29 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5
          http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
6
          version="3.0">
7
    <enterprise-beans>
8
        <session>
9
            <ejb-name>TestRunner</ejb-name>
10
            <remote>org.eclipse.persistence.testing.framework.server.TestRunner</remote>
11
            <ejb-class>org.eclipse.persistence.testing.framework.server.TestRunnerBean</ejb-class>
12
            <session-type>Stateless</session-type>
13
            <transaction-type>Bean</transaction-type>
14
            <ejb-ref>
15
                <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
16
                <ejb-ref-type>Session</ejb-ref-type>
17
                <remote>org.eclipse.persistence.testing.models.jpa.sessionbean.EmployeeService</remote>
18
            </ejb-ref>
19
            <persistence-context-ref>
20
                <persistence-context-ref-name>persistence/sessionbean/entity-manager</persistence-context-ref-name>
21
                <persistence-unit-name>sessionbean</persistence-unit-name>
22
            </persistence-context-ref>
23
            <persistence-unit-ref>
24
                <persistence-unit-ref-name>persistence/sessionbean/factory</persistence-unit-ref-name>
25
                <persistence-unit-name>sessionbean</persistence-unit-name>
26
            </persistence-unit-ref>
27
        </session>
28
    </enterprise-beans>
29
</ejb-jar>
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/jndi.properties (+6 lines)
Line 0 Link Here
1
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
2
java.naming.security.principal=fmwadmin
3
java.naming.security.credentials=welcome1
4
5
6
(-)jpa/eclipselink.jpa.test/resource/eclipselink-sessionbean-model/server/persistence.xml (+9 lines)
Line 0 Link Here
1
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
2
    <persistence-unit name="sessionbean">
3
        <jta-data-source>jdbc/OracleDS</jta-data-source>
4
        <properties>
5
            <property name="eclipselink.logging.level" value="%%loglevel%%"/>
6
            <property name="eclipselink.logging.logger" value="DefaultLogger"/>
7
        </properties>
8
    </persistence-unit>
9
</persistence>
(-)jpa/eclipselink.jpa.test/run/Testing Browser (JPA).launch (+44 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-field-access-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-properties.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-annotation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-ddl-generation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-validation-failed-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
36
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-merge-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
37
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-only-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
38
</listAttribute>
39
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
40
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
41
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.jpa.test"/>
42
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
43
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.jpa.test/run}"/>
44
</launchConfiguration>
(-)jpa/eclipselink.jpa.test/run/test.properties (+10 lines)
Line 0 Link Here
1
# Testing environment properties
2
# Set your target database properties here or give it by -Dtest.properties=file option
3
jdbc.driver.jar=../../../extension.oracle.lib.external/ojdbc5_11.jar
4
db.driver=oracle.jdbc.OracleDriver
5
db.url=jdbc:oracle:thin:@localhost:1521:orcl
6
db.user=scott
7
db.pwd=tiger
8
9
# Logging option for debugging
10
#logging.level=info
(-)jpa/eclipselink.jpa.test/run/test.properties (+10 lines)
Line 0 Link Here
1
# Testing environment properties
2
# Set your target database properties here or give it by -Dtest.properties=file option
3
jdbc.driver.jar=../../../extension.oracle.lib.external/ojdbc5_11.jar
4
db.driver=oracle.jdbc.OracleDriver
5
db.url=jdbc:oracle:thin:@localhost:1521:orcl
6
db.user=scott
7
db.pwd=tiger
8
9
# Logging option for debugging
10
#logging.level=info
(-)jpa/eclipselink.jpa.test/run/Testing Browser (JPA).launch (+44 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4
<listEntry value="/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/ui/TestingBrowserFrame.java"/>
5
</listAttribute>
6
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7
<listEntry value="1"/>
8
</listAttribute>
9
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
12
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;JDBC_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
13
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;TOOLS_LIB&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#13;&#10;"/>
14
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.junit.JUNIT_CONTAINER/4&quot; javaProject=&quot;eclipselink.core.test&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
15
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
16
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.lib&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
17
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-antlr.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/eclipselink-asm.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
19
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ant.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
20
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/activation.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
21
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/connector.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/connector-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
22
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/ejb.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
23
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jms.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
24
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jsr173_1.0_api.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
25
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/jta.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/jta-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
26
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/mail.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
27
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.core.lib/persistence.jar&quot; path=&quot;3&quot; sourceAttachmentPath=&quot;/eclipselink.core.lib/persistence-src.zip&quot; sourceRootPath=&quot;&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
28
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
29
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.core.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
30
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;eclipselink.jpa.test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
31
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-field-access-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
32
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-advanced-properties.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
33
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-annotation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
34
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-ddl-generation-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
35
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-validation-failed-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
36
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-merge-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
37
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/eclipselink.jpa.test/eclipselink-xml-only-model.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
38
</listAttribute>
39
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
40
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"/>
41
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipselink.jpa.test"/>
42
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512M&#13;&#10;-Djava.security.manager&#13;&#10;-Djava.security.policy==${workspace_loc:eclipselink.core.test}/resource/java.policy.allpermissions&#13;&#10;-javaagent:${workspace_loc:eclipselink.core.test}/../../eclipselink.jar"/>
43
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:eclipselink.jpa.test/run}"/>
44
</launchConfiguration>
(-)jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/FullRegressionTestSuite.java (-4 / +3 lines)
Lines 172-185 Link Here
172
        // Lob model
172
        // Lob model
173
        fullSuite.addTest(org.eclipse.persistence.testing.tests.jpa.lob.LobJUnitTestCase.suite());
173
        fullSuite.addTest(org.eclipse.persistence.testing.tests.jpa.lob.LobJUnitTestCase.suite());
174
174
175
        try{
175
        try {
176
	        Class structConverterClass = Class.forName("org.eclipse.persistence.testing.tests.jpa.structconverter.StructConverterTestSuite");
176
	        Class structConverterClass = Class.forName("org.eclipse.persistence.testing.tests.jpa.structconverter.StructConverterTestSuite");
177
	        Test testCase = (Test)(structConverterClass.getMethod("suite", (Class[])null).invoke(null, (Object[])null));
177
	        Test testCase = (Test)(structConverterClass.getMethod("suite", (Class[])null).invoke(null, (Object[])null));
178
	        fullSuite.addTest(testCase);
178
	        fullSuite.addTest(testCase);
179
        } catch (Exception e){
179
        } catch (Exception e){
180
        	// TODO print a proper warning
180
        	// This will usually happen if the Oracle-specific tests are not on the class-path.
181
        	// this will usually happen if the Oracle-specific tests are not on the classpath
181
        	System.out.println("WARNING: " + e + " - StructConverterTestSuite not found, most likely because Oracle specific component is not on the classpath.");
182
        	e.printStackTrace();
183
        }
182
        }
184
        
183
        
185
        return fullSuite;
184
        return fullSuite;
(-)jpa/eclipselink.jpa/build.properties (+2 lines)
Lines 4-15 Link Here
4
# Do not edit the variables below
4
# Do not edit the variables below
5
# They may, however, be overridden in parent scripts
5
# They may, however, be overridden in parent scripts
6
eclipselink.core.lib=../eclipselink.core.lib
6
eclipselink.core.lib=../eclipselink.core.lib
7
eclipselink.core.lib.trunk=../../foundation/eclipselink.core.lib
7
eclipselink.core.depend=activation.jar,connector.jar,ejb.jar,jms.jar,jsr173_1.0_api.jar,jta.jar,mail.jar,persistence.jar
8
eclipselink.core.depend=activation.jar,connector.jar,ejb.jar,jms.jar,jsr173_1.0_api.jar,jta.jar,mail.jar,persistence.jar
8
9
9
asm=asm
10
asm=asm
10
antlr=antlr
11
antlr=antlr
11
12
12
eclipselink.core=../eclipselink.core
13
eclipselink.core=../eclipselink.core
14
eclipselink.core.trunk=../../foundation/eclipselink.core
13
eclipselink.jpa=../eclipselink.jpa
15
eclipselink.jpa=../eclipselink.jpa
14
16
15
src.dir=src
17
src.dir=src
(-)jpa/eclipselink.jpa/build.xml (-9 / +24 lines)
Lines 3-22 Link Here
3
    <property file="${user.home}/build.properties"/>
3
    <property file="${user.home}/build.properties"/>
4
    <property file="./build.properties"/>
4
    <property file="./build.properties"/>
5
5
6
    <path id="compile.path">
6
    <available file="${eclipselink.core.trunk}" type="dir" property="is.trunk"/>
7
        <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
8
        <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
9
        <pathelement path="${eclipselink.core}/${classes.dir}"/>
10
        <fileset
11
            dir="${eclipselink.core.lib}"
12
            includes="${eclipselink.core.depend}"/>
13
    </path>
14
7
8
    <target name="config-trunk" if="is.trunk">
9
        <path id="compile.path">
10
            <pathelement path="${eclipselink.core.lib.trunk}/eclipselink-antlr.jar"/>
11
            <pathelement path="${eclipselink.core.lib.trunk}/eclipselink-asm.jar"/>
12
            <pathelement path="${eclipselink.core.trunk}/${classes.dir}"/>
13
            <fileset
14
                dir="${eclipselink.core.lib.trunk}"
15
                includes="${eclipselink.core.depend}"/>
16
        </path>
17
    </target>
18
19
    <target name="config-flat" unless="is.trunk">
20
        <path id="compile.path">
21
            <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
22
            <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
23
            <pathelement path="${eclipselink.core}/${classes.dir}"/>
24
            <fileset
25
                dir="${eclipselink.core.lib}"
26
                includes="${eclipselink.core.depend}"/>
27
        </path>
28
    </target>
29
15
    <!-- all -->
30
    <!-- all -->
16
    <target name="all" depends="clean, compile" description="build core classes"/>
31
    <target name="all" depends="clean, compile" description="build core classes"/>
17
32
18
    <!-- compile --> 
33
    <!-- compile --> 
19
    <target name="compile" depends="" description="compile EclipseLink JPA">
34
    <target name="compile" depends="config-trunk, config-flat" description="compile EclipseLink JPA">
20
        <mkdir dir="${eclipselink.jpa}/${classes.dir}"/>
35
        <mkdir dir="${eclipselink.jpa}/${classes.dir}"/>
21
        <javac srcdir="${eclipselink.jpa}/${src.dir}" 
36
        <javac srcdir="${eclipselink.jpa}/${src.dir}" 
22
               destdir="${eclipselink.jpa}/${classes.dir}"
37
               destdir="${eclipselink.jpa}/${classes.dir}"

Return to bug 211797