You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2009/09/17 19:58:33 UTC
svn commit: r816310 -
/openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml
Author: dwoods
Date: Thu Sep 17 17:58:33 2009
New Revision: 816310
URL: http://svn.apache.org/viewvc?rev=816310&view=rev
Log:
OPENJPA-1213 Add section to Migration appendix about Query.setParameter() behavior differences.
Modified:
openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml
Modified: openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml?rev=816310&r1=816309&r2=816310&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/migration_considerations.xml Thu Sep 17 17:58:33 2009
@@ -31,7 +31,7 @@
</title>
<para>
The following sections indicate changes that are incompatible between
- OpenJPA 1.x.x releases and the 2.0 release. Some of may
+ OpenJPA 1.x.x releases and the 2.0 release. Some may
require application changes. Others can be remedied through the use
of compatibility options. If your application uses a version 1.0 persistence.xml,
compatibility options will be set appropriately to maintain backward
@@ -137,6 +137,24 @@
enhancement and at runtime.
</para>
</section>
+ <section id="setParameters">
+ <title>
+ Query.setParameteres()
+ </title>
+ <para>
+ The Query interface setParameters() method behavior has
+ changed to throw an IllegalArgumentException if more
+ parameter substitutions are supplied than defined in the
+ createQuery() call, as required by the JPA2 specification.
+ OpenJPA 1.2.x and prior versions would silently ignore the
+ supplied parameter substitutions and allow the Query to be
+ processed.
+ </para>
+ <para>
+ See OPENJPA-1213 for test cases that
+ demonstrate the behavioral differences.
+ </para>
+ </section>
</section>
<section id="Disabling AutoOff Collection Tracking">
<title>
@@ -175,7 +193,10 @@
The FieldMapping.getStrategy() in OpenJPA 1.x
returned an instance of RelationFieldStrategy
for embded super classes, but will now return an
- EmbedFieldStrategy. See OPENJPA-1214 for an
+ EmbedFieldStrategy.
+ </para>
+ <para>
+ See OPENJPA-1214 for an
example test case demonstrating the change.
</para>
</section>