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