解决报错:JPA-style positional param was not an integral ordinal;
org.hibernate.QueryException: JPA-style positional param was not an integral ordinal; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: JPA-style positional param was not an integral ordinal
在用jpa nativequery语句中,用spring junit测试发现报错:JPA-style positional param was not an integral ordinal。。。。。。
经过百度与自己代码调试发现:多是sql之间的空格问题,或者sql拼接问题,还有可能是sql语句后面不能有分号。
优秀不够,你是否无可替代
软件测试交流QQ群:721256703,期待你的加入!!
欢迎关注我的微信公众号:软件测试君
![](https://www.cnblogs.com/images/cnblogs_com/longronglang/1061549/o_QQ%E6%88%AA%E5%9B%BE20190728134401.jpg)