Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic