Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to passing array as parameter to oracle stored procedure from JPA

764546Apr 5 2010 — edited Aug 5 2010
Hi All,
I need to call a stored proc in Oracle that accepts an array as input parameter.

Pls let me know how should i call it from my JPA. Is this even possible without using JDBC directly?

i keep getting the ff error:

wrong number or types of arguments in call to ....

my code is something like this:

...
String[] myArr...

Query query = em.createNativeQuery("BEGIN myStoredProc(:arr); END;");
query.setParameter("arr", myArr);
...


Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2010
Added on Apr 5 2010
3 comments
4,318 views