网络上有很多例子描述了如何使用Hibernate调用存储过程,但是,当使用Spring时,图片会发生一些变化。我在MySQL中有一个要调用的存储过程:在SQL中,我需要编写以下内容:It returns a row with the following: `{INT},{INT},{FLOAT}`
对于Spring,我使用HibernateTemplate执行hibernate操作
我有一个MySQL存储过程,并使用Hibernate调用该过程。*(pno-1)); List<Object[]> empList=query.list();org.hibernate.exception.SQLGrammarException: could not execute query
Caused by:
我正在尝试触发MySQL的存储过程,在MySQL中,该存储过程工作正常,但是当我尝试从Hibernate触发时,它给出了异常。org.hibernate.MappingException: Named query not known: GetEmployeeDetailsimport javax.persistence.Id;
import org.hiberna