File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Sorting results by column in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Sorting results by column in Hibernate" Watch "Sorting results by column in Hibernate" New topic
Author

Sorting results by column in Hibernate

s daniel
Greenhorn

Joined: Nov 03, 2008
Posts: 9
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
 
subject: Sorting results by column in Hibernate