openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Hongell <ghong...@us.ibm.com>
Subject openjpa NativeQuery and NamedNativeQuery only allow select sql statements
Date Mon, 04 Dec 2006 18:11:39 GMT
It seems that openjpa NativeQuery and NamedNativeQuery only allow "select" 
sql statements.  When I try to
insert, delete, update, create table, alter table, drop table, or call a 
stored procedure, I get 
<4|false|0.9.6-incubating-SNAPSHOT> 
org.apache.openjpa.persistence.InvalidStateException: Cannot perform an 
update or delete operation on select query: "call out2(?, ?)".
Is this intentional? 
I expected the NativeQuery to allow me to execute any valid sql statement.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message