Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

getClassNameForObjectID should check on number of concrete candidates, and return if just 1

Created: 29/Jan/14 07:22 PM   Updated: 12/Feb/14 07:49 PM   Resolved: 29/Jan/14 07:34 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 3.2.12, 4.0.0.m1

 Description  « Hide
If the user does a pm.getObjectById and the "id" implies class X, and that is abstract and there is a single subclass that is concrete, then the "id" must be for that type. RDBMSStoreManager should do a check and simply return in such situations (to avoid an extra datastore SELECT)

Andy Jefferson added a comment - 29/Jan/14 07:34 PM
This is a more specific case of the general solution that NUCCORE-1113 will attempt later. GitHub master and 3.2 have this now

Andy Jefferson made changes - 29/Jan/14 07:34 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 12/Feb/14 07:49 PM
Status Resolved [ 5 ] Closed [ 6 ]