• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sorting results by column in Hibernate

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having trouble sorting by a specific column. If I sort by participantTypeId it works. But if I sort by sortColumn then I receive an error. But both columns are in the DB and mapped correctly (I think)



ERROR - [CmsExceptionHandler.handle:41] Unexpected error caught in the application.
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: luParticipantType.sortColumn of: company.dao.domain.CaseRecord; nested exception is org.hibernate.QueryException: could not resolve property: luParticipantType.sortColumn of: company.domain.CaseRecord
Caused by: org.hibernate.QueryException: could not resolve property: luParticipantType.sortColumn of: company.dao.domain.CaseRecord
at org.hibernate.persister.entity.AbstractPropertyMapping.throwPropertyException(AbstractPropertyMapping.java:43) ...

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic