Hi,Good Morning,i have one question:
when I use Hibernate in Struts Action,as following:
(Class)session.load(Class,id)
you know,it can work well,but when I type it as following:
for(...)
{
(Class)session.load(Class,id)
}
it can not work well,tell me:
Unhandled Exception thrown: class java.lang.ClassCastException
So,I want to know,hibernate's Load() can not use in a cycle Action?
or not?
Hibernate version:3.05
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs: WARN RequestProcessor:538 - Unhandled Exception thrown: class java.lang.ClassCastException
Name and version of the database you are using: Sqlserver2000
The generated SQL (show_sql=true): Hibernate: select linkaction0_.link_id as link1_0_, linkaction0_.link_name as link2_11_0_, linkaction0_.link_url as link3_11_0_, linkaction0_.link_type as link4_11_0_, linkaction0_.link_sortid as link5_11_0_, linkaction0_.userid as userid11_0_, linkaction0_.langid as langid11_0_, linkaction0_.link_picurl as link8_11_0_ from link linkaction0_ where linkaction0_.link_id=?
Debug level Hibernate log excerpt:
|