Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problen in native sql query execution

 
Rajan Nath
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to execute one simple sql query consists of two sub query, in database the query executes well but in hbm it is giving error.
like org.hibernate.exception.SQLGrammarException: could not execute query
Caused by: java.sql.SQLException: [IBM][SQLServer JDBC Driver]Invalid column name: clazz_
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shwo us your query and actual table structure.

It is looking for a field called clazz_ in your table. Is there such a column?

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic