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] Resolved: (OJB-128) "query by example"ignore inherited fields (using 'table per subclass' mapping)
Date Wed, 24 Jan 2007 17:46:49 GMT

     [ https://issues.apache.org/jira/browse/OJB-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Armin Waibel resolved OJB-128.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.5

fixed it by including all fields

> "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.3, 1.0.4
>            Reporter: Armin Waibel
>         Assigned To: Armin Waibel
>             Fix For: 1.0.5
>
>
> 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