openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B.J. Reed (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-917) stored procedures throw InvalidStateException when using getSingleResult() or getResultList()
Date Tue, 10 Feb 2009 15:05:09 GMT

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

B.J. Reed updated OPENJPA-917:
------------------------------

    Attachment: OPENJPA-917.patch

This patch updates QueryImpl.java to bypass the InvalidStateException when a native query
is used.  Also included is a JUnit test case that creates / loads / uses / drops a Derby stored
procedure.  This patch was created on the openjpa 1.2.x branch and should also be applied
and verified on trunk.

This fix does not fix the case where returning objects from stored procedures is not working
properly - a new JIRA will be opened for this improvement

> stored procedures throw InvalidStateException when using getSingleResult() or getResultList()
> ---------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-917
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-917
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.2.0
>            Reporter: B.J. Reed
>             Fix For: 1.2.0
>
>         Attachments: OPENJPA-917.patch
>
>
> Currently, org.apache.openjpa.persistence.QueryImpl throws an InvalidStateException when
any stored procedure is called.  The code needs to be updated to allow native queries to continue
without the exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message