Posts Tagged ‘Stored procedure in Hibernate’


In this tutorial, you will learn how to use store procedure in Hibernate. MySQL store procedure Here’s a MySQL store procedure, which accept a stock code parameter and return the related stock data. DELIMITER $$   CREATE PROCEDURE `GetStocks`(int_stockcode VARCHAR(20)) BEGIN SELECT * FROM stock WHERE stock_code = int_stockcode; END $$   DELIMITER ;…