cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r546957 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java
Date Wed, 13 Jun 2007 17:02:33 GMT
Author: aadamchik
Date: Wed Jun 13 10:02:33 2007
New Revision: 546957

URL: http://svn.apache.org/viewvc?view=rev&rev=546957
Log:
CAY-805: SQLTemplate improvement: new #bindObjectEqual #bindObjectNotEqual directives
support for map binding

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java?view=diff&rev=546957&r1=546956&r2=546957
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/BindObjectEqualDirective.java
Wed Jun 13 10:02:33 2007
@@ -119,6 +119,9 @@
         else if (object instanceof ObjectId) {
             return ((ObjectId) object).getIdSnapshot();
         }
+        else if(object instanceof Map) {
+            return (Map) object;
+        }
         else if (object != null) {
             throw new ParseErrorException(
                     "Invalid object parameter, expected Persistent or ObjectId or null: "



Mime
View raw message