Issue Details (XML | Word | Printable)

Key: NUCRDBMS-575
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

JDOQL of query using cast to subclass of embedded object and access to field causes exception

Created: 16/Jan/12 03:10 PM   Updated: 06/Feb/12 10:15 AM   Resolved: 16/Jan/12 06:19 PM
Component/s: Queries
Affects Version/s: 3.0.4, 3.0.5
Fix Version/s: 3.0.6


 Description  « Hide
If we have an embedded PC field, and that PC field has a subclass (and we have a discriminator in the embedded base class) then a query like

SELECT FROM mydomain.MyClass WHERE ((mydomain.MyEmbSub)this.embedded).subField == 'value'

results in an exception that the "MyEmbSub" has no table in the datastore

Andy Jefferson added a comment - 16/Jan/12 06:19 PM
SVN trunk now adds support for cast and instanceof in JDOQL for embedded inherited fields

Andy Jefferson made changes - 16/Jan/12 06:19 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 06/Feb/12 10:15 AM
Status Resolved [ 5 ] Closed [ 6 ]