db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r499496 - /db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java
Date Wed, 24 Jan 2007 17:41:11 GMT
Author: arminw
Date: Wed Jan 24 09:41:10 2007
New Revision: 499496

URL: http://svn.apache.org/viewvc?view=rev&rev=499496
Log:
fix OJB-128, "query by example" ignore inherited fields (using 'table per subclass' mapping)

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java?view=diff&rev=499496&r1=499495&r2=499496
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/query/QueryByExampleImpl.java Wed Jan 24 09:41:10
2007
@@ -47,7 +47,7 @@
     }
 
     /**
-     * @param anExampleObject
+     * @param exampleObject
      * @param distinct
      */
     QueryByExampleImpl(Object exampleObject, boolean distinct)
@@ -112,7 +112,7 @@
             Object               example    = getExampleObject();
             DescriptorRepository repository = aPb.getConfiguration().getModel();
             ClassDescriptor      cld        = repository.getDescriptorFor(example.getClass());
-            FieldDescriptor[]    fds        = cld.getFieldDescriptions();
+            FieldDescriptor[]    fds        = cld.getFieldDescriptor(true);
     
             for (int idx = 0; idx < fds.length; idx++)
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message