Failed to lazily initialize a collection, no session or session was closed (despite eagerly fetching)

后端 未结 1 990
天涯浪人
天涯浪人 2020-12-10 22:29

Okay, I get the above exception in an application I\'m working on. I am using JPA and hibernate. Here is the stacktrace:

WARNING: #{commissionController.sav         


        
相关标签:
1条回答
  • 2020-12-10 23:01

    This was caused by a bug in Hibernate. Found it here: http://issues.jboss.org/browse/JBAS-5474

    It works from version 4.1.8 (https://hibernate.onjira.com/browse/HHH-6043)

    The problem is with the @PostLoad, which apparently doesn't do things in the right order.

    0 讨论(0)
提交回复
热议问题