org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed ?
echojava 提问于:2017-08-15
0 0

hibernate查询异常:

org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed
    at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:380)
    at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:372)
    at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:365)
    at org.hibernate.collection.AbstractPersistentCollection.write(AbstractPersistentCollection.java:205)
    at org.hibernate.collection.PersistentBag.add(PersistentBag.java:297)
  • 所有回答
暂时还没有回答,我来回答