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)

Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Marco Schulze
Votes: 0
Watchers: 0

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

JDOQL2 : Support select of expressions with more than 1 component

Created: 05/Apr/10 04:47 PM   Updated: 13/Apr/10 07:27 PM   Resolved: 06/Apr/10 08:44 AM
Component/s: Queries
Affects Version/s: 2.1.0.m1
Fix Version/s: 2.1.0.m2

Forum Thread URL:,6046

 Description  « Hide
When executing the pretty simple query

  value="SELECT JDOHelper.getObjectId(this)"

the following exception happens:

Cannot select SQLExpression with more than 1 component : a0.organisationid,a0.usecaseid
org.datanucleus.exceptions.NucleusException: Cannot select SQLExpression with more than 1 component : a0.organisationid,a0.usecaseid
        at org.datanucleus.jdo.JDOQuery.execute(
        at org.datanucleus.test.PropertySetFieldBasedEditLayoutUseCase.getAllUseCaseIDs(PropertySetFieldBasedEd
        at org.datanucleus.test.Main$
        at org.datanucleus.test.Main.executeInTransaction(
        at org.datanucleus.test.Main.main(

Test case:

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 06/Apr/10 08:44 AM
SVN trunk handles this, and unit test is now present in test.jdo.application.

PS, for the n'th time, Nightlabs testcase style is excessively large. Why have 20 lines to create a PMF when you can just do
pmf = JDOHelper.getPersistenceManagerFactory("");
In terms of namings "persistenceManagerFactory"->"pmf", "persistenceManager"->"pm"