开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜