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