-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Getting result from DML:ing stored function
PostPosted: Fri Sep 21, 2007 8:03 am 
Regular
Regular

Joined: Wed Oct 15, 2003 4:40 pm
Posts: 67
Hi,

Is there a way of calling and getting a result from a DML:ing stored function (Oracle) with an EntityManager?

Plain ones I can do with createNativeQuery("select func() from dual") but DML:ing ones have to be called and I can't find any way of attaching to the result of an createNativeQuery("{?=call func()}"). I don't think the result mapping versions if createNativeQuery work either since there is no resulting column name to match to :-/

Getting the connection from the delegate doesn't work for me either as it closes my connection after execution when used in Seam


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 22, 2007 5:24 pm 
Regular
Regular

Joined: Wed Oct 15, 2003 4:40 pm
Posts: 67
Surely someone has run such a function in this envireonment(?)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 24, 2007 4:30 am 
Regular
Regular

Joined: Wed Oct 15, 2003 4:40 pm
Posts: 67
A RTFM-reference to a manual and a section number would be enough ;-)

It is kind of a show-stopper for my project rewrite right now...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 6:40 am 
Regular
Regular

Joined: Wed Oct 15, 2003 4:40 pm
Posts: 67
Nik wrote:
A RTFM-reference to a manual and a section number would be enough ;-)

It is kind of a show-stopper for my project rewrite right now...


Anyone? Either I'm going to win some award for the longest running monologue on this forum or then I'll get banned...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.