reset password
Author Message
Prasanth
Posts: 3
Posted 19:45 Feb 23, 2016 |

I'm getting the following error wen i try to select a row.

java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: could not locate named parameter [user]

But the parameter user exists in the model class. I tried giving other parameter, it shows the same error for all the parameters. 

Can some one help me solve this problem.

Thank you.

cysun
Posts: 2935
Posted 20:11 Feb 23, 2016 |

Named parameter should be in your Hibernate query, e.g. ":user" in "from Something where user = :user".

Last edited by cysun at 20:12 Feb 23, 2016.