How can i call stored procedure using spring with jpa

前端 未结 3 535
温柔的废话
温柔的废话 2020-12-17 04:54

Am new to SPRING with JPA techniques.

am trying to call the stored procedure which is written in mysql 5. when i am trying to get the data using stored procedure cal

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 05:26

    JPA 2.1 introduced support for stored procedures. You might want to give it a try instead of a native queries.

    http://docs.oracle.com/javaee/7/api/javax/persistence/EntityManager.html#createStoredProcedureQuery%28java.lang.String%29

提交回复
热议问题