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.
精彩评论