Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
session = (sessionFactory != null) ? sessionFactory.openSession(): null threadLocal.set(session)
Full stack trace of any exception that occurs:
n" java.lang.ClassCastException: [Ljava.lang.Object;
at tempgeniusDAO.FdmSQL.queryDB(FdmSQL.java:51)
at tempgeniusDAO.FdmSQL.main(FdmSQL.java:25)
Name and version of the database you are using:
MS SQl Server 2000
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I have this code that runs properly
String d="select HistAt as HistAt,RId as RId from tblrecord";
SQLQuery q=session.createSQLQuery(d);
q.addScalar("HistAt",Hibernate.STRING);
q.addScalar("RId",Hibernate.STRING);
List results=q.list();int i=0;
while (i<results.size()){
///What Can I put here to print the value of the query considering it is returning two values HistAt and RId
}