Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting results by column in Hibernate

 
s daniel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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) ...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic