This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting results by column in Hibernate

 
s daniel
Greenhorn
Posts: 9
  • 0
  • 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) ...

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic