I hv just started to use hibernate , and database i am using is MySQL . I have just created a simple stored procedure in mysql ,
CREATE DEFINER=`root`@`localhost` PROCEDURE `fst_proc`(in x int,out y int) BEGIN select pow(x,2) into y; END
which means that the result will be contained in variable y . My question is that , how should i use hibernate to retrieve this value in mapping file as well as java application . I know its a very basic question , but it would be nice if someone replies .Thanks in advance
|