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

后端 未结 4 1256
失恋的感觉
失恋的感觉 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:22

    to summarise

    1.you should set all named params 2. when you dynamically set values to name param, there should not be : in it. in case you have : you should use string concatenation and drop the approach of named param. as said in first answer.

提交回复
热议问题