From 82c79adab1cfa42e67c0d19760dcf9f623b8afd5 Mon Sep 17 00:00:00 2001 From: Milosz Tylenda Date: Sun, 10 Apr 2011 07:51:33 +0000 Subject: [PATCH] OPENJPA-1932: Documentation update: Correct broken and outdated links. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1090746 13f79535-47bb-0310-9956-ffa450edef68 --- openjpa-project/src/doc/manual/openjpa_legal.xml | 2 +- .../src/doc/manual/ref_guide_caching.xml | 2 +- openjpa-project/src/doc/manual/ref_guide_conf.xml | 8 ++++---- .../src/doc/manual/ref_guide_dbsetup.xml | 4 ++-- .../src/doc/manual/ref_guide_mapping.xml | 15 ++++++++------- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/openjpa-project/src/doc/manual/openjpa_legal.xml b/openjpa-project/src/doc/manual/openjpa_legal.xml index 9de683ce3..bb3d00a3c 100644 --- a/openjpa-project/src/doc/manual/openjpa_legal.xml +++ b/openjpa-project/src/doc/manual/openjpa_legal.xml @@ -125,7 +125,7 @@ You can obtain a copy of the License at: The source code is available at: -https://glassfish.dev.java.net/source/browse/glassfish/ +http://java.net/projects/glassfish/sources/svn/show or http://jcp.org/en/jsr/detail?id=317 diff --git a/openjpa-project/src/doc/manual/ref_guide_caching.xml b/openjpa-project/src/doc/manual/ref_guide_caching.xml index a15784a19..c1d596e6c 100644 --- a/openjpa-project/src/doc/manual/ref_guide_caching.xml +++ b/openjpa-project/src/doc/manual/ref_guide_caching.xml @@ -1182,7 +1182,7 @@ optionally collected as <property name="openjpa.jdbc.QuerySQLCache" value="true(EnableStatistics=true)"> -The +The QueryStatistics can be accessed via PreparedQueryCache.getStatistics(). diff --git a/openjpa-project/src/doc/manual/ref_guide_conf.xml b/openjpa-project/src/doc/manual/ref_guide_conf.xml index 70487f9bb..7df6840e2 100644 --- a/openjpa-project/src/doc/manual/ref_guide_conf.xml +++ b/openjpa-project/src/doc/manual/ref_guide_conf.xml @@ -1726,8 +1726,8 @@ classes. See for details. Configuration API: - -org.apache.openjpa.conf.OpenJPAConfiguration.getDetachState + +org.apache.openjpa.conf.OpenJPAConfigurationImpl.getDetachState @@ -2327,8 +2327,8 @@ for an object lock before throwing an exception, or -1 for no limit. See Configuration API: - -org.apache.openjpa.conf.OpenJPAConfiguration.getLog + +org.apache.openjpa.lib.conf.Configuration.getLog diff --git a/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml b/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml index 9eef1dcee..9bafdbbc2 100644 --- a/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml +++ b/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml @@ -3860,8 +3860,8 @@ special handling to be able to store unicode values. Setting this property to one of these types, and if so, will attempt to correctly configure the statement using the OraclePreparedStatement.setFormOfUse. For more details, see the Oracle - -Readme For NChar. Note that this can only work if OpenJPA is able to + +JDBC Programming with Unicode. Note that this can only work if OpenJPA is able to access the underlying OraclePreparedStatement instance, which may not be possible when using some third-party datasources. If OpenJPA detects that this is the case, a warning will be logged. diff --git a/openjpa-project/src/doc/manual/ref_guide_mapping.xml b/openjpa-project/src/doc/manual/ref_guide_mapping.xml index 90a9b1db7..2407b0b26 100644 --- a/openjpa-project/src/doc/manual/ref_guide_mapping.xml +++ b/openjpa-project/src/doc/manual/ref_guide_mapping.xml @@ -2653,7 +2653,7 @@ The default fetch type is EAGER but can be changed to LAZY by using: The entity property class is required to have JAXB binding annotations. You can generate property class from an XML schema by using the xjc generator from the -JAXB reference implementation. +JAXB reference implementation. The xjc will generate the class along with the required annotations. Ensure that @XmlRootElement appears in the root class. In some cases this annotation needs to be added manually. @@ -2662,8 +2662,9 @@ appears in the root class. In some cases this annotation needs to be added manua The entity property class is required to have getter and setter methods for all its fields. By default, the xjc will not generate setter methods for collections but you can force it to do so by using the -collection -setter injector plugin. + +setters plugin +or collection setter injector plugin. The JAXB jar files must be on the application classpath (jaxb-api.jar, @@ -3105,7 +3106,7 @@ OpenJPA recognizes the following class extensions. This extension specifies how to eagerly fetch subclass state. It overrides the global -openjpa.jdbc.SubclassFetchMode property. Set the JPA +openjpa.jdbc.SubclassFetchMode property. Set the OpenJPA org.apache.openjpa.persistence.jdbc.SubclassFetchMode annotation to a value from the @@ -3225,12 +3226,12 @@ OpenJPA recognizes the following field extensions. This extension specifies how to eagerly fetch related objects. It overrides the global -openjpa.jdbc.EagerFetchMode property. Set the JPA +openjpa.jdbc.EagerFetchMode property. Set the OpenJPA org.apache.openjpa.persistence.jdbc.EagerFetchMode annotation to a value from the - -org.apache.openjpa.persistence.jdbc.EagerFetchType + +org.apache.openjpa.persistence.jdbc.FetchMode enum: JOIN, PARALLEL, or NONE. See for a discussion of eager fetching.