Community
Participate
Working Groups
Since there is a hard code in sessions.xml to set DB platform: <platform-class>org.eclipse.persistence.platform.database.OraclePlatform</platform-class> These tests failed on all non-Oracle DB.
Based on the build.xml change with passing a real DB platform into sessions.xml during build ejb jar file, the sessions.xml just like the following: <?xml version="1.0" encoding="US-ASCII"?> <sessions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://xsd/eclipse_persistence_sessions_1_0.xsd" version="1.0"> <session xsi:type="server-session"> <name>NativeAPITest</name> <server-platform xsi:type="%%server-platform-class%%"/> <event-listener-classes/> <logging xsi:type="eclipselink-log"> <log-level>finest</log-level> </logging> <primary-project xsi:type="xml">META-INF/NativeAPITestProject.xml</primary-project> <login xsi:type="database-login"> <platform-class>%%database-platform%%</platform-class> <external-connection-pooling>true</external-connection-pooling> <external-transaction-controller>true</external-transaction-controller> <sequencing> <default-sequence xsi:type="table-sequence"> <name>Default</name> </default-sequence> </sequencing> <datasource lookup="string">%%data-source-name%%</datasource> </login> </session> </sessions> Code reviewed by Yiping Zhao.
Checked into trunk, revision: 6047
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink