Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.PropertyNotFoundException: Could not find setter

 
Jackson Martin
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to execute sql query using hibernate but hibernate is not able to find setter method. And showing me error : " org.hibernate.PropertyNotFoundException: Could not find setter"
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an Hibernate expert, but it would be nice if you could inspect the object returned byand see if the values for your properties match with what you expect. Because it could be that your database is returning all lowercase or uppercase column names and then the setter can't be found (because it's case sensitive). Then you should use the addScalar() method. This article might be useful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic