db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel (JIRA)" <j...@apache.org>
Subject [jira] Created: (OJB-128) "query by example"ignore inherited fields (using 'table per subclass' mapping)
Date Wed, 24 Jan 2007 12:47:49 GMT
"query by example"ignore inherited fields (using 'table per subclass' mapping)
------------------------------------------------------------------------------

                 Key: OJB-128
                 URL: https://issues.apache.org/jira/browse/OJB-128
             Project: OJB
          Issue Type: Bug
          Components: ODMG-API, PB-API
    Affects Versions: 1.0.4, 1.0.3
            Reporter: Armin Waibel
         Assigned To: Armin Waibel


using class Manager--->Executive--->Employee (with inheritance, base class is Employee)
and

Manager tmp = new Manager();
tmp.setName("manager_" + name);
//Query q = QueryFactory.newQuery(tmp);
Query q = QueryFactory.newQueryByExample(tmp);
Manager newM1 = (Manager) broker.getObjectByQuery(q);

The generated sql completely ignore the value of the inherited field 'name'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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