Spring JPA - Procedure call with sqlserver dialect

Asked

Viewed 59 times

2

Hello,

I have the following configuration in my application file.properties:

spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.jpa.hibernate.dialect= org.hibernate.dialect.SQLServer2012Dialect 

However, when I run a Procedure call JPA uses CALL instead of EXEC:

Hibernate: {call SPT_BUSCA_DADOS_VENDEDOR(?)}

Hibernate: {call SPT_LE_HTK_TEMP_PED(?)}

this is causing some problems in Procedure calls. there is some way to change the way procedures are called?

  • How you’re making this call on JPA?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.