开发者

How to call a stored routine/function from Spring/Hibernate?

开发者 https://www.devze.com 2023-01-28 17:43 出处:网络
Is there a possibility to call a stored function (MySql Server) via Spring/Hibernate开发者_如何学Go?

Is there a possibility to call a stored function (MySql Server) via Spring/Hibernate开发者_如何学Go?

The function gets two parameter (int, varchar(20)) and returns a varchar(255), I think there must me a possibility with named-query but I have no idea how to generate the mapping.


You might have to wrap the stored procedure in another stored procedure that returns a resultset.

See Hibernate Core Reference Chapter 18 for info on named queries and calling stored procedures.

0

精彩评论

暂无评论...
验证码 换一张
取 消