db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r499495 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java
Date Wed, 24 Jan 2007 17:37:42 GMT
Author: arminw
Date: Wed Jan 24 09:37:36 2007
New Revision: 499495

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

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java?view=diff&rev=499495&r1=499494&r2=499495
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByCriteria.java
Wed Jan 24 09:37:36 2007
@@ -155,7 +155,7 @@
     {
         Criteria criteria = new Criteria();
         ClassDescriptor cld = MetadataManager.getInstance().getRepository().getDescriptorFor(anExample.getClass());
-        FieldDescriptor[] fds = cld.getFieldDescriptions();
+        FieldDescriptor[] fds = cld.getFieldDescriptor(true);
         PersistentField f;
         Object value;
 



---------------------------------------------------------------------
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