早教吧作业答案频道 -->其他-->
com.accp.dao.impl.StudentsDAOImpl@1ba92dbHibernate:selecttop2students0.idasid0,students0.classidasclass20,students0.nameasname0,students0.ageasage0fromstudentsstudents0orderbystudents0.iddescHibernate:selectcount(*)as
题目详情
com.accp.dao.impl.StudentsDAOImpl@1ba92db
Hibernate:select top 2 students0_.id as id0_,students0_.class_id as class2_0_,students0_.name as name0_,students0_.age as age0_ from students students0_ order by students0_.id desc
Hibernate:select count(*) as col_0_0_ from students students0_
2011-8-15 16:27:36 org.apache.catalina.core.ApplicationDispatcher invoke
严重:Servlet.service() for servlet jsp threw exception
org.hibernate.LazyInitializationException:could not initialize proxy - the owning Session was closed
\x05at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:56)
\x05at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98)
\x05at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:158)
\x05at com.accp.entity.Classes$$EnhancerByCGLIB$$d773eff9.getName()
\x05at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\x05at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
\x05at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
\x05at java.lang.reflect.Method.invoke(Method.java:597)
.
Hibernate:select top 2 students0_.id as id0_,students0_.class_id as class2_0_,students0_.name as name0_,students0_.age as age0_ from students students0_ order by students0_.id desc
Hibernate:select count(*) as col_0_0_ from students students0_
2011-8-15 16:27:36 org.apache.catalina.core.ApplicationDispatcher invoke
严重:Servlet.service() for servlet jsp threw exception
org.hibernate.LazyInitializationException:could not initialize proxy - the owning Session was closed
\x05at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:56)
\x05at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98)
\x05at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:158)
\x05at com.accp.entity.Classes$$EnhancerByCGLIB$$d773eff9.getName()
\x05at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\x05at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
\x05at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
\x05at java.lang.reflect.Method.invoke(Method.java:597)
.
▼优质解答
答案和解析
就是在Hibernate 映射表的xml 文件中.将many -to -one 里面加一个lazy="false"
看了com.accp.dao.im...的网友还看了以下:
The house rent has increased by ____since the sam 2020-05-14 …
The world is full of very rich people who are as 2020-05-14 …
as much as和as more as全句是but they probably do nont 2020-05-14 …
关于as...as possible句型的问题?举个例子,挣尽可能多的钱,是make money 2020-05-14 …
关于as…as possible的问题!as+adj/adv as possible 相当于as+ 2020-05-14 …
The more i think about him,the more reasons i fin 2020-05-16 …
Yesterday evening some of my friends and I walked 2020-05-16 …
There are a small number of people involved,possi 2020-05-16 …
Our neighbor has__ours A.as a big house as BOur n 2020-05-16 …
com.accp.dao.impl.StudentsDAOImpl@1ba92dbHibernate 2020-11-28 …