openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Hongell" <>
Subject Fwd: has @SqlResultSetMapping been tested
Date Wed, 10 Jan 2007 17:48:54 GMT
 I tried using both a native query and it failed, has it ever been tested?
also named native query with resultSetMapping fails at runtime,
also @SqlResultSetMappings does not seem to be implemented in openjpa and
fails in the MappingTool with *java.lang.ArrayStoreException*

   entities=@EntityResult(entityClass=DeptBean.class )

this fails
     Query updateDeptName = _em.createNativeQuery(sql,"DeptBeanMapping");
this works
//     Query updateDeptName = _em.createNativeQuery(sql,DeptBean.class);


There is no query result mapping for "null" with name "DeptBeanMapping".

at org.apache.openjpa.jdbc.meta.MappingRepository.getQueryResultMapping(

at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.<init>(

at org.apache.openjpa.jdbc.kernel.SQLStoreQuery.newDataStoreExecutor(

at org.apache.openjpa.kernel.QueryImpl.createExecutor(

at org.apache.openjpa.kernel.QueryImpl.compileForDataStore(

at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(

at org.apache.openjpa.kernel.QueryImpl.getOperation(

at org.apache.openjpa.kernel.DelegatingQuery.getOperation(

at org.apache.openjpa.persistence.QueryImpl.execute(

at org.apache.openjpa.persistence.QueryImpl.getResultList(


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message