【发布时间】:2015-10-20 20:24:38
【问题描述】:
有趣的问题是我传递了一个 int 并且它抱怨它与类型不匹配:
org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [0] did not match expected type [java.lang.Integer]
@Procedure(procedureName = "dbo.do_cool_stuff_to_client")
void coolClientStuff(int clientId);
它是这样称呼的:
public void someOtherMethod(int clientId){
clientRepository.coolClientStuff(clientId);
}
【问题讨论】:
标签: java spring jpa stored-procedures hql