"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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]