-->
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: Update Store Procedure Issues
PostPosted: Wed Jul 02, 2008 2:09 pm 
Newbie

Joined: Wed Jul 02, 2008 1:51 pm
Posts: 1
Hi,

I am using Hibernate 3.2.3 with Enterprise DB, and Weblogic 9 as the application server. JDK version is 1.5.

For insert an update operations I am using stored procedures. For insert I am using the check="none" attribute. Inserts work just fine. However, when updating I get the following error - A result was returned when none was expected. I tried adding the check="none" attribute for the stored procedure call, but no luck.

Here is how I am calling the stored procedure in the HBM file -

Insert:
<sql-insert callable="true" check="none">
{call cd_insert_proc(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}
</sql-insert>

Update:
<sql-update callable="true" check="none">
{call cd_update_proc(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}
</sql-update>

One more thing that is interesting is that I do not get this error when I run the application on Apache Tomcat - but only on Weblogic. I use apache on my local development environment.


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.