When no return value sql server using stored procedures hibernate

Recently encountered such a problem to do the project: writing a sql statement: sqlserver execute the stored procedure to get a return value, use the hibernate sql execution, no error results, implementation of the sentence suspended the program, and then I went to use trycache catch it, the result is:

 

 Actually give a stored procedure to add this to say:


SET XACT_ABORT on;
SET NOCOUNT ON;
begin tran;

 

The end of the stored procedure to plug this to say:

COMMIT TRAN
RETURN

ErrerHandle:
ROLLBACK TRAN
RETURN

So it would okkkkkkkk, as to principle. . . . . , Interested junior partner know you can give me a message ah ah ah ah ah ah ah

Guess you like

Origin www.cnblogs.com/summerstore/p/11880163.html