Issue Details (XML | Word | Printable)

Key: NUCRDBMS-608
Type: Task Task
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
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 JDOHelper.getObjectId ought to select the discriminator when present

Created: 08/Aug/12 10:09 AM   Updated: 30/Oct/13 05:48 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Currently when a query has JDOHelper.getObjectId it just considers the identity value and not the class. It should also have a mapping for the discriminator, or equivalent (when using union). In particular
1. when in the SELECT clause
2. when in the WHERE clause

Need to add use-cases that this is aimed at, since in some cases it would not apply.

Andy Jefferson made changes - 30/Oct/13 05:48 PM
Field Original Value New Value
Description Currently when a query has JDOHelper.getObjectId it just considers the identity value and not the class. It should also have a mapping for the discriminator, or equivalent (when using union). In particular
1. when in the SELECT clause
2. when in the WHERE clause
Currently when a query has JDOHelper.getObjectId it just considers the identity value and not the class. It should also have a mapping for the discriminator, or equivalent (when using union). In particular
1. when in the SELECT clause
2. when in the WHERE clause

Need to add use-cases that this is aimed at, since in some cases it would not apply.