You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Reijo Tomperi (JIRA)" <ji...@apache.org> on 2015/01/16 12:14:36 UTC

[jira] [Updated] (OPENJPA-2563) @SqlResultSetMapping with orm.xml causes ArgumentException

     [ https://issues.apache.org/jira/browse/OPENJPA-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reijo Tomperi updated OPENJPA-2563:
-----------------------------------
    Attachment: namedquery_not_found.zip

Attached source code for a small project that shows the problem.

> @SqlResultSetMapping with orm.xml causes ArgumentException
> ----------------------------------------------------------
>
>                 Key: OPENJPA-2563
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2563
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 2.3.0
>         Environment: Windows 7, standalone application and JUnit tests.
>            Reporter: Reijo Tomperi
>         Attachments: namedquery_not_found.zip
>
>
> @SqlResultSetMapping annotation with named query in orm.xml causes ArgumentException
> "There is no query with the name "AnyNamedQuery" defined for any of the known persistent classes:" if native query is executed before named query. 
> - If named query is executed first, there is no error, which gives somekind of indication that the orm.xml file is found and is correctly formed.
> - If named query is specified with annotation, there is no error, but the error can appear in other classes that attempt to use orm.xml file.
> This happens with version 2.0.0 and also with 2.3.0. Other versions have not been tested. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)