断点调试的时候:
set 里面是这个错:
com.sun.jdi.InvocationException occurred invoking method后来我改了<hibernate-mapping default-lazy="true">
也不可以
set 里面是这个错:
com.sun.jdi.InvocationException occurred invoking method后来我改了<hibernate-mapping default-lazy="true">
也不可以
解决方案 »
- 点击下载,弹出一个新窗口下载,如何下载完了,自动关闭新窗口呢?
- 页面显示,js处理问题
- java.代码生成器来了....开启节约编程时间的时代来了.....
- 数据库连接问题!!!!!!!!!!!!
- 关于strust2中多莫板转发的问题!
- jws技术探讨:欢迎各位高手进来共享一下经验
- java怎样获取视频的真实播放源
- struts如何一次提交多个表单
- Java导出word文档不支持中文问题求助
- 【求助】java线程同步相关问题
- 请教mule中的bean直接配置在spring的bean.xml文件中,统一由spring来管理的实例,和配置过程,谢谢
- Spring中使用注解的方式如何实现"Inner Bean的机制"?
<set name="moduleSet" inverse="true" cascade="save-update" lazy="false">
<key column="MODULENO"/>
<one-to-many class="cn.com.liandisys.tcg.model.PrjModule"/>
</set>报错变了
org.hibernate.exception.SQLGrammarException: could not initialize a collection: [cn.com.liandisys.tcg.model.PRJ_PRODUCT.moduleSet#TSDT000001]
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
org.hibernate.loader.Loader.loadCollection(Loader.java:2001)
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:63)
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:454)
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:844)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:241)
org.hibernate.loader.Loader.doList(Loader.java:2213)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
org.hibernate.loader.Loader.list(Loader.java:2099)
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
cn.com.liandisys.tcg.dao.impl.PrjProductDaoImpl.getTotalCount(PrjProductDaoImpl.java:258)
cn.com.liandisys.tcg.service.impl.PrjProductServiceImpl.getTotalCoun.........