This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass Array of String / Integer to Stored procedure using Hibernate

 
hildich kilal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am able to call stored procedure successfully using EJB3.
there is a new requirement where I need to call a stored procedure which takes in array of String or integer.
In JDBC it is fine. We can use ARRAY / ArrayDescriptor etc.
How can we do it in Hibernate / EJB3? Can simple doing setParameter(n,<java array or String>); will work?
Can any one point me to some example? I tried googling but not much success.

Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!