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.
|