You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by "Armin Waibel (JIRA)" <ji...@apache.org> on 2007/01/24 13:47:49 UTC
[jira] Created: (OJB-128) "query by example"ignore inherited fields
(using 'table per subclass' mapping)
"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
[jira] Resolved: (OJB-128) "query by example"ignore inherited
fields (using 'table per subclass' mapping)
Posted by "Armin Waibel (JIRA)" <ji...@apache.org>.
[ 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