Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Stanimir Stamenkov" Subject: Re: JPA Calling an Oracle Message-ID: X-Comment-To: comp.lang.java.databases Newsgroups: comp.lang.java.databases Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 29 Date: Wed, 27 Apr 2011 15:22:14 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303917734 96.60.20.240 (Wed, 27 Apr 2011 10:22:14 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:22:14 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.databases:183 To: comp.lang.java.databases Thu, 12 Jun 2008 09:54:34 -0500, /Jason King/: > Owen Jacobson wrote: > >> If there's any support for it at all, it'll be a JPA-vendor-specific >> feature. The JPA provider for JBoss 4 is Hibernate; as far as I'm >> aware, there's no general purpose support for stored procedure calls, >> only some special-case support for a few specific forms. Check the >> hibernate docs for details: >> >> >> 16.2.2.1 has some specific notes for Oracle sprocs. > > If you can rewrite the pl/sql side as a function that might get you out > of hell. Thank you both Owen and Jason for your suggestions. I've followed the Hibernate documentation and obtained a JDBC connection through |session.connection()| preparing a CallableStatement which works, but I'll most probably write an additional PL/SQL function (I can't modify the existing one) to "normalize" the result, later. -- Stanimir --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24