Hibernate啟動報錯cannot simultaneously fetch multiple bags
Posted on 2008-12-30 13:03 云自無心水自閑 閱讀(2702) 評論(2) 編輯 收藏 所屬分類: Java 、心得體會 、Hibernate我使用的是annotation方式的hibernate配置。結果在啟動Tomcat的時候報錯:
Invocation of init method failed; nested exception is org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
解決方法:
去除Annotation中的所有FetchType="EAGAR"
Invocation of init method failed; nested exception is org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
解決方法:
去除Annotation中的所有FetchType="EAGAR"