-->
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.  [ 1 post ] 
Author Message
 Post subject: Stored Procedure Support
PostPosted: Thu Apr 07, 2005 9:10 am 
Newbie

Joined: Thu Apr 07, 2005 8:58 am
Posts: 6
Are stored procedure calls supported in 2.1.8 or is this a feature in 3.0?

I tried to include
<sql-query name="callStoredProcedure" callable="true">{call usp_Set_Status (?, ?, ?, ?)}</sql-query>

in my mapping xml file associated to a Class but I could not figure out how
to do the call from Java.

Query storedProc = session.getNamedQuery("callStoredProcedure");
storedProc.setLong(1, batchID);
storedProc.setString(2, "N");
storedProc.setString(3, "Us100");
storedProc.setString(4, "memo");
storedProc.list();

gives me an error in execution.


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

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.