DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-771
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: Jan
Votes: 0
Watchers: 0
Operations

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

InheritanceStrategy.SUPERCLASS_TABLE and PersistenceManager#getObjectById

Created: 10/Oct/11 03:13 PM   Updated: 07/Nov/11 02:57 PM   Resolved: 10/Oct/11 05:44 PM
Component/s: None
Affects Version/s: 2.2.0.m1
Fix Version/s: None

File Attachments: 1. Zip Archive dn-testcase.zip (4 kB)


Forum Thread URL: http://www.datanucleus.org/servlet/forum/viewthread_thread,6869
Datastore: HSQL


 Description  « Hide
As described in http://www.datanucleus.org/servlet/forum/viewthread_thread,6869:

Having two classes ClassA and ClassB with inheritencestrategy = superclass, and I ask

pm.getObjectById(ClassB.class, Long.valueOf(7));

but instance '7' is of type ClassA, I don't get a proper exception. Testcase attached.