• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help Converting from HQL to Criteria

 
Schevus Osborne
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate version: 3.2.6

Full stack trace of any exception that occurs:

org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: type of: org.oz.report.Report; nested exception is org.hibernate.QueryException: could not resolve property: type of: org.oz.report.Report
Caused by: org.hibernate.QueryException: could not resolve property: type of: org.oz.report.Report

Name and version of the database you are using: Oracle 9i

I am trying to convert a fairly complicated HQL query to a criteria query. The existing HQL query is:



My attempt to convert this to criteria is:



From what I understand, there were several fixes in version 3.2.6 of Hibernate that address DetachedCriteria and subqueries, but I am still having problems. I get the error listed above. Any advice or help would be greatly appreciated. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic