openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r698714 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
Date Wed, 24 Sep 2008 20:21:52 GMT
Author: ppoddar
Date: Wed Sep 24 13:21:51 2008
New Revision: 698714

URL: http://svn.apache.org/viewvc?rev=698714&view=rev
Log:
Allows unrecognized hints (those not starting with openjpa.* as prefix) be stored opaquely
- for extension plug-ins.

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java?rev=698714&r1=698713&r2=698714&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
Wed Sep 24 13:21:51 2008
@@ -501,8 +501,12 @@
 
 	public OpenJPAQuery setHint(String key, Object value) {
 		_em.assertNotCloseInvoked();
-		if (key == null || !key.startsWith("openjpa."))
+		if (key == null)
 			return this;
+		if (!key.startsWith("openjpa.")) {
+			_query.getFetchConfiguration().setHint(key, value);
+			return this;
+		}
 		String k = key.substring("openjpa.".length());
 
 		try {



Mime
View raw message