DataNucleus - Products
  History | Log In     View a printable version of the current page.  
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
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.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson - 17/Dec/05 10:05 AM
Fixed in CVS. Relates to JDO2 TCK test scenario "inheritance1"