Joined: Sat Jul 30, 2005 10:32 am Posts: 1 Location: amelia island, florida, usa
|
the following query executes successfully:
Query q = s.createQuery("select fp from FormatPreference fp");
The following query encounters a CLassCastException:
Query q = s.createQuery("select fp from FormatPreference fp order by fp.StudentID");
09:54:08,722 DEBUG [DotNode] getDataType() : StudentID -> org.hibernate.type.StringType@1302b69
09:54:08,722 DEBUG [FromReferenceNode] Resolved : fp.StudentID -> formatpref0_.StudentID
09:54:08,722 DEBUG [FromReferenceNode] Resolved : fp -> formatpref0_.ID
java.lang.ClassCastException
at org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:819)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExprLhs(HqlSqlBaseWalker.java:4326)
I have implemented Serializable in my class.
Any ideas .... thanks Michael[/b]
|
|