Mona Chawla created OLINGO-771:
----------------------------------
Summary: Unable to fetch StoredProcedureQuery results using
ODataJPAQueryExtensionEntityListener
Key: OLINGO-771
URL: https://issues.apache.org/jira/browse/OLINGO-771
Project: Olingo
Issue Type: Bug
Components: odata2-jpa
Affects Versions: V2 2.0.5
Reporter: Mona Chawla
Hi,
We would like to bind a stored procedure result to an entity. We do so by
returning a StoredProcedureQuery in the implementation of
ODataJPAQueryExtensionEntityListener. But, this throws an IllegalStateException
: Calling setFirstResult on a StoredProcedureQuery is not supported by the
specification.
StoredProcedureQuery is a type of Query, and hence we should be able to use it.
Please can you look into this issue.
Error:
"stacktrace": [
{
"class":
"org.eclipse.persistence.internal.jpa.StoredProcedureQueryImpl",
"method": "setFirstResult",
"line": 832
},
{
"class":
"org.eclipse.persistence.internal.jpa.StoredProcedureQueryImpl",
"method": "setFirstResult",
"line": 1
},
{
"class":
"org.apache.olingo.odata2.jpa.processor.core.access.data.JPAPage$JPAPageBuilder",
"method": "buildFromQuery",
"line": 115
},
{
"class":
"org.apache.olingo.odata2.jpa.processor.core.access.data.JPAPage$JPAPageBuilder",
"method": "build",
"line": 95
},
{
"class":
"org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl",
"method": "handlePaging",
"line": 443
},
{
"class":
"org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl",
"method": "process",
"line": 165
},
{
"class":
"org.apache.olingo.odata2.jpa.processor.core.ODataJPAProcessorDefault",
"method": "readEntitySet",
"line": 64
},....]
Thanks and Regards,
Mona
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)