Issue Details (XML | Word | Printable)

Key: CORE-2610
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JPOX Core (ARCHIVED)

Fetch of related object (1-1 relation) with FK stored in referenced table, and where referenced type has subclasses with own tables

Created: 17/Dec/05 07:13 AM   Updated: 22/Jan/06 02:34 PM   Resolved: 17/Dec/05 10:05 AM
Component/s: JDO
Affects Version/s: 1.1.0-beta-5
Fix Version/s: 1.1.0-beta-6


 Description  « Hide
Where we have a relation between A and B and the FK is stored in the table of B. A container 2 objects, 1 of type B1, and another of type B2. When we retrieve the field A.b1 or A.b2 we want the fetch to (left outer) join to B to get the id, and then join further to B1 or B2 to make sure we retrieve the object of the correct type.

JPOX 1.1.0-beta-5 only does the left outer join to B, and so we get the first object that it finds - which may be of the incorrect type.

Andy Jefferson added a comment - 17/Dec/05 10:05 AM
Fixed in CVS. Relates to JDO2 TCK test scenario "inheritance1"

Andy Jefferson made changes - 17/Dec/05 10:05 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.1.0-rc1 [ 10022 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 14/Jan/06 06:27 AM
Fix Version/s 1.1.0-beta-6 [ 10080 ]
Fix Version/s 1.1.0-rc1 [ 10022 ]
Andy Jefferson made changes - 22/Jan/06 02:34 PM
Status Resolved [ 5 ] Closed [ 6 ]