Reijo Tomperi created OPENJPA-2563:
--------------------------------------

             Summary: @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.3.0, 2.0.0
         Environment: Windows 7, standalone application and JUnit tests.
            Reporter: Reijo Tomperi


@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)

Reply via email to