How to solve “org.hibernate.QueryException: Not all named parameters have been set” error?

后端 未结 4 1221
失恋的感觉
失恋的感觉 2021-01-24 20:38

I am using java-hibernate-mysql combination

When i m doing update query i m getting following error. I don\'t understand what is wrong with hibernate. Following i have

4条回答
  •  心在旅途
    2021-01-24 21:33

    You can bypass the named parameter query by puttong if condition when it is dynamic.

    So you make it as a query string and then append your named parameter by putting a condition.

    You don't have to drop the named parameter approach.

提交回复
热议问题