Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot spring引导和调用存储过程注释还是entityManger?_Spring Boot_Stored Procedures_Java 8_Jpa 2.1 - Fatal编程技术网

Spring boot spring引导和调用存储过程注释还是entityManger?

Spring boot spring引导和调用存储过程注释还是entityManger?,spring-boot,stored-procedures,java-8,jpa-2.1,Spring Boot,Stored Procedures,Java 8,Jpa 2.1,有人能帮我一下吗,告诉我调用存储过程的正确方法是什么 1. I've seen annotations to call a procedure like : @Procedure: In this case I have seen that they create the procedure in the entity, but I think it is not most optimal. @Query: I have been able to call my proced

有人能帮我一下吗,告诉我调用存储过程的正确方法是什么

1. I've seen annotations to call a procedure like : 
   @Procedure: In this case I have seen that they create the procedure in the entity,
   but I think it is not most optimal.
   @Query: I have been able to call my procedure with this option, but when I would like a
   parameter to be     null, I don't know how to do it since there is
   not much information. 
2. I've been using entityManager and I've been able to make a parameter null, but I don't know if it's 
   the best way to call a procedure with entityManager

另外,创建一个验证数据的过程好吗?或者它不是必需的,无论是在实际情况下还是仅在后端有效,调用存储过程的更好选项是

@namedStoredProcedureRequesties