How to execute a stored procedure in Apache Delta Spike

117 Views Asked by At

I'm using Apache Delta Spike's Data module in my project, however, I don't find in it's documentation a proper way to execute and get results from a stored procedure call...

Can someone help me?

1

There are 1 best solutions below

0
On

sorry, a bit late, but it should work like this, e.g. when you do a native SQL call (I use DB2 and have one parameter coming back from the call of the procedure):

@Modifying
@Query(value = "call YOURSCHEMANAME.SP_YOURPROCNAME(:outParam)", isNative = true)
public abstract Integer yourMethodName(@QueryParam("outParam") Integer outParam);