Release Notes
11g (11.1.1.0.0)
September 2008
This document provides information on:
For a detailed overview of the new features that this release provides, see http://www.oracle.com/technology/products/ias/toplink/technical/tl11g_fov.htm.
This release includes the following new features:
Includes EclipseLink, which provides JPA, SDO, and JAXB support
Integration with Coherence
Stored Procedure Configuration in TopLink project.xml
Performance Enhancements
In 11g (11.1.1.0.0), the TopLink install directory structure has changed as Example 1 shows. Table 1 and Table 2 provide details on the JAR files installed in this directory structure.
Example 1 11g (11.1.1.0.0) TopLink Install Directory
TOPLINK_HOME
toplink-readme.html
/bin
sdo-compiler.cmd
sdo-compiler.sh
setenv.cmd
setenv.sh
tljaxb.cmd
tljaxb.sh
/doc
toplink-install.html
toplink-javadoc.jar
toplink-relnotes.html
/support
/jlib
coherence-eclipselink.jar
coherence-eclipselink-src.zip
eclipselink.jar
eclipselink-src.jar
toplink.jar
toplink-src.jar
toplink-oc4j.jar
/modules
com.bea.core.antlr.runtime_2.7.7.jar
commonj.sdo_2.1.0.jar
glassfish.jaxb.xjc_2.1.6.jar
glassfish.jaxb_2.1.6.jar
javax.activation_1.1.jar
javax.ejb_3.0.1.jar
javax.jms_1.1.1.jar
javax.mail_1.4.jar
javax.persistence_1.0.0.0_1-0.jar
javax.resource_1.5.1.jar
javax.xml.bind_2.1.1.jar
javax.xml.soap_1.3.0.0.jar
javax.xml.stream_1.1.1.0.jar
xml.jar
xmlparserv2.jar
/utils
/rename
packageRename.cmd
packageRename.jar
packageRename.properties
packageRename.sh
/workbench
workbench.cmd
workbench.sh
/config
workbench.ico
platforms.dpr
/platforms
attunity.xml
cloudscape.xml
db2.xml
dbase.xml
derby.xml
hsql.xml
informix.xml
msaccess.xml
mysql4.xml
mysql5.xml
oracle.xml
oracle8i.xml
oracle9i.xml
other.xml
oracle10g.xml
oracle11.xml
pointbase.xml
sqlanywhere.xml
sqlserver.xml
sybase.xml
timesten.xml
/jlib
cmpintegrator.jar
help-share.jar
jewt.jar
ohj.jar
oracle_ice.jar
share.jar
tljaxb.jar
tlmwcore.jar
toplinkmw.jar
/help
tlmwhelp.jar
other language-specific help jars, if installed
/xsds
object-persistence_1_0.xsd
orm_1_0.xsd
persistence_1_0.xsd
sessions_10_1_3.xsd
sessions_11_1_1.xsd
toplink-object-persistence_10_1_3.xsd
toplink-object-persistence_11_1_1.xsd
Table 1 and Table 2 provide details on the JAR files.
Table 1 TopLink JAR Files
| JAR | Description |
|---|---|
|
|
This JAR contains the Coherence integration for EclipseLink. This JAR is required on the classpath if you are integrating your EclipseLink JPA application with Oracle Coherence. |
|
|
This JAR contains the TopLink migration tool that you can use to easily migrate an existing OC4J application that uses the Orion persistence manager to use the TopLink persistence manager. The Orion persistence manager was deprecated in OC4J 10.1.3.1 and in 11g (11.1.1.0.0), it is removed. |
|
|
This JAR contains the TopLink Package Rename tool for migrating Release 1 (9.0.3) projects to 11g (11.1.1.0.0). For more information, see "Package Rename" in the TopLink Migration Instructions. |
|
|
This JAR contains the TopLink JAXB compiler necessary to create a JAXB project. |
|
|
This JAR contains the TopLink Workbench online help used by the TopLink Workbench application classes in When installing non-English versions of TopLink Workbench, additional files (for other languages) will be available. |
|
|
This JAR contains all TopLink classes. You use this JAR in Java SE deployments. |
|
|
This JAR contains the Oracle Containers for Java EE integration for TopLink. This JAR file is only used with OC4J 10.1.3.x. |
|
|
This JAR contains the TopLink Workbench application classes. It depends on |
Table 2 Third-party JAR Files
| JAR | Description |
|---|---|
|
|
This jar contains Antlr 2.7.7 (ANother Tool for Language Recognition), and is required on the classpath for using EJB 1.X and 2.X (specifically EJBQL queries). |
|
|
This JAR contains the Service Data Object (SDO) APIs. |
|
|
This JAR contains the EclipseLink persistence framework. EclipseLink supports virtually any type of data source, including relational databases, XML, or EIS systems. |
|
|
This JAR is included to provide JAXB 2.1 schema to java compiler capabilities |
|
|
This JAR is included to provide JAXB 2.1 schema to java compiler capabilities |
|
|
This JAR is required by the JAXB standard APIs and also for using TopLink OXM/EclipseLink MOXy XML binary data mappings. |
|
|
This JAR contains the EJB 3.0 interface and is included in JavaEE 5 containers. It will be required on the classpath if you are using annotations in the JAR and running against JavaSE or Non JavaEE 5 containers. |
|
|
This JAR contains the Java Messaging Service (JMS) 1.1 interface and is required on the classpath for using Cache Coordination over JMS, in JavaSE or with Non JavaEE 5 containers. This jar is included in JavaEE 5 containers. |
|
|
This JAR is required by the JAXB standard APIs and also for using TopLink OXM/EclipseLink MOXy XML binary data mappings. |
|
|
This JAR contains the JPA 1.0 interface, and is required on the classpath for using JPA in JavaSE or with Non JavaEE 5 containers. This jar is included in JavaEE 5 containers. |
|
|
This JAR is required when using TopLink EIS mapping capabilities. |
|
|
This JAR provides the JAXB 2.1 runtime APIs. |
|
|
This JAR contains Java XML Soap Extensions integration. |
|
|
This JAR provides the StAX parser APIs and is required by the JAXB 2.x public APIs. |
|
|
This JAR is part of the Oracle XML Development Kit (XDK) and is provided to support XMLType mappings against an Oracle XML Database. |
|
|
This JAR contains the Oracle XML Development Kit (XDK) implementation. The XDK XML parser is primarily required in an Oracle OC4J 10.1.3.x environment. |
The classes in the oracle.toplink.* packages have been deprecated in this release and replaced with those in org.eclipse.persistence.*. For information on migrating to these new packages, see: http://www.oracle.com/technology/products/ias/toplink/doc/11110/migration/toplink-migrate.html.
For a detailed list of all TopLink API modifications made in this release, see: http://www.oracle.com/technology/products/ias/toplink/doc/11110/api/api_mod_readme.html.
For information on migrating existing TopLink projects to this release, see: http://www.oracle.com/technology/products/ias/toplink/doc/11110/migration/toplink-migrate.html.
The following are known issues in Oracle TopLink 11g (11.1.1.0.0):
This section contains information on the following issues:
Section 4.1.2, "UnitOfWork.release() not Supported with External Transaction Control"
Section 4.1.3, "Returning Policy for UPDATE with Optimistic Locking"
Section 4.1.4, "JDBC Drivers returning Timestamps as Strings"
Section 4.1.5, "Proxy Authentication with Oracle Containers for Java EE (OC4J) Managed Data Sources"
Section 4.1.6, "Unit of Work does not add Deleted Objects to Change Set"
TopLink generates incorrect outer join for SQL Server v2005. The outer join syntax generated is correct for earlier versions of this database. To work around this limitation, reconfigure the database compatibility (refer to the SQLServer documentation for details). Alternatively, you can use a custom TopLink database platform.
A unit of work synchronized with a Java Transaction API (JTA) will throw an exception if it is released. If the current transaction requires its changes to not be persisted, the JTA transaction must be rolled back.
When in a container-demarcated transaction, call setRollbackOnly() on the EJB/session context:
@Stateless
public class MySessionBean
{ @Resource
SessionContext sc;
public void someMethod()
{
...
sc.setRollbackOnly();
}
}
When in a bean-demarcated transaction then you call rollback() on the UserTransaction obtained from the EJB/session context:
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class MySessionBean implements SomeInterface
{
@Resource
SessionContext sc;
public void someMethod()
{
sc.getUserTransaction().begin();
...
sc.getUserTransaction().rollback();
}
}
The returning policy, which allows values modified during INSERT and UPDATE to be returned and populated in cached objects, does not work in conjunction with numeric version optimistic locking for UPDATE. The value returned for all UPDATE operations is 1 and does not provide meaningful locking protection.
Do not use a returning policy for UPDATE in conjunction with numeric optimistic locking.
The use of returning policy for INSERT when using optimistic locking works correctly.
TopLink assumes that date and time information returned from the server will use Timestamp. If the JDBC driver returns a String for the current date, TopLink will throw an exception. This is the case when using a DB2 JDBC driver.
To work around this issue, consider using a driver that returns Timestamp (such as COM.ibm.db2.jdbc.app.DB2Driver) or change the policy to use local time instead of server time.
Another option is to use a query re-director on the ValueReadQuery used by the platform:
ValueReadQuery vrq = new ValueReadQuery(
"SELECT to_char(sysdate, 'YYYY-MM-DD HH:MM:SS.SSSSS') FROM DUAL"
);
vrq.setRedirector(new TSQueryRedirector());
...
class TSQueryRedirector implements QueryRedirector
{
public Object invokeQuery(DatabaseQuery query, Record arguments, Session session)
{
String value = (String)session.executeQuery(query);
return ConversionManager.getDefaultManager().convertObject(
value, java.sql.Timestamp.class
);
}
}
Proxy authentication does not work with OC4J managed data sources. Instead of using the data source provided by the application server, you must create a data source yourself.
Refer to the "Configuring Oracle Database Proxy Authentication" in the Oracle Fusion Middleware Developer's Guide for Oracle TopLink for more information.
For example, replace this code:
login.setConnector(
new OracleJDBC10_1_0_2ProxyConnector(
((JNDIConnectorlogin.getConnector()).getName()
)
);
with the following:
oracle.jdbc.pool.OracleDataSource ds = new oracle.jdbc.pool.OracleDataSource();
ds.setUser("MyMainUser");
ds.setPassword("MyPassword");
ds.setUrl("jdbc:oracle:thin:@MyServer:1521:MyDb");
login.setConnector(new OracleJDBC10_1_0_2ProxyConnector(ds));
When accessing the change set of a Unit of Work to determine what has changed, objects that are pending deletion (such as uow.deleteObject( ) and uow.deleteAllObjects( )) will not be returned from the result set.
The objects pending deletion are only available through the Unit of Work getDeletedObjects call.
The section contains information on the following issues in the Oracle TopLink 11g (11.1.1.0.0) documentation:
In the PDF format of the Oracle Fusion Middleware Developer's Guide for Oracle TopLink, the following third-party license information statement for EclipseLink is missing in "Appendix B" and should read as follows:
Oracle TopLink includes EclipseLink for JPA, SDO, and JAXB support. A dual license software, EclipseLink is provided under both the Eclipse Public License (http://www.eclipse.org/org/documents/epl-v10.php) and the Eclipse Distribution License (http://www.eclipse.org/org/documents/edl-v10.php).
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Accessibility standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For more information, visit the Oracle Accessibility Program Web site at http://www.oracle.com/accessibility/.
Accessibility of Code Examples in Documentation
Screen readers may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, some screen readers may not always read a line of text that consists solely of a bracket or brace.
Accessibility of Links to External Web Sites in Documentation
This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.
TTY Access to Oracle Support Services
Oracle provides dedicated Text Telephone (TTY) access to Oracle Support Services within the United States of America 24 hours a day, seven days a week. For TTY support, call 800.446.2398.
Oracle TopLink Release Notes, 11g (11.1.1.0.0)
Copyright © 1997, 2008, Oracle. All rights reserved.
The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose.
If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs.
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all risks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.