Hi,
In case it is helpful, when I give the complete packagename of the
mappedsuperclass in the query then I am not seeing this issue.
E.g:
Query newQuery = pm.createQuery("select x from
test.kodo.memofield.AbstractInstance x");
List l = newQuery.getResultList();
Here is the test case that will not break and the query is against
mappessuperclass (with complete packagename).
http://n2.nabble.com/file/n2699345/openJPATestcase.zip openJPATestcase.zip
To run the test case:
1) ant
2) ant test.
Also I tested it on version:
java org.apache.openjpa.conf.OpenJPAVersion
OpenJPA 2.0.0-SNAPSHOT
version id: openjpa-2.0.0-SNAPSHOT-r422266:753596
Apache svn revision: 422266:753596
Regards,
Ravi.
JIRA [email protected] wrote:
>
> Query against a MappedSuperclass is not supported
> -------------------------------------------------
>
> Key: OPENJPA-1049
> URL: https://issues.apache.org/jira/browse/OPENJPA-1049
> Project: OpenJPA
> Issue Type: Bug
> Components: query
> Reporter: Pinaki Poddar
> Assignee: Pinaki Poddar
> Fix For: 2.0.0
>
>
> See [1] for details
>
> While it is debatable whether query against MappedSuperClass to be
> supported or not (JPA spec says no), but OpenJPA document claims
> otherwise.
>
> 1. Decide on the feature
> 2. Given that OpenJPA document claims support, most likely the feature was
> implemented. Investigate whether it a regression across release or a pure
> documentation bug.
>
> [1]
> http://n2.nabble.com/Can%27t-query-against-a-MappedSuperclass-tc2665700.html
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
>
--
View this message in context:
http://n2.nabble.com/-jira--Created%3A-%28OPENJPA-1049%29-Query-against-a-MappedSuperclass-is-not-supported-tp2680157p2699345.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.