CastClassException « Criteria « JPA Q&A





1. Criteria - Weird CastClassException    forum.hibernate.org

Hi All. I've encountered a weird bug with Criteria's (I'm assuming) using hibernate3. Essentially, it seems that somewhere within Hibernate integers are being misrepresented as Strings. In the code below, sc is my SearchCriteria class, which allows for a search parameters to be specified generically. SearchCriteria holds a columnName and place holders for Integer, String and Date objects. In the below ...