max wrote:
just run your stored procedure via a normal stored procedure.
If it does not return anything why would you need to call it throuhg hibernate ?
We want to seperate this functionality from our application as other applications in different programming languages might also use this.
Now this is my problem now:
I have to do the following:
<sql-query name="calComm">
<return-scalar type="integer" column=""/>
select func_calculate_commission()
</sql-query>
When I put <sql-query name="calComm" callable="true"> then my mapping does not get loaded properly. The problem that I now have is that Hibernate says there is no column "", which is true however what would I put as the return from the function is 1 (ie. RETURN 1; END |)
You might be wondering why I changed the statement { ? = call func_calculate_commission() } to select func_calculate_commission() and the reason is that the other statement was not being executed, this one does get executed however I get a error after execution for the column "" problem.
What do I need to do now?