Hibernate throwing ConcurrentModificationException with an embedded ElementCollection

后端 未结 2 1648
死守一世寂寞
死守一世寂寞 2021-01-21 22:38

I\'m running Hibernate 4.2.6.Final / JPA2 and trying to have an @ElementCollection List of @Embeddable objects which themselves contain an @ElementCollection List of String.

相关标签:
2条回答
  • 2021-01-21 22:56

    This an issue that was already reported to Hibernate developers and no fix is scheduled! Sorry. See https://hibernate.atlassian.net/browse/HHH-4313.

    0 讨论(0)
  • 2021-01-21 23:05

    I spent some time digging around a little more and found this similar issue on SO which in turn references this Jira issue:

    ConcurrentModificationException when collection of embeddable contains a collection

    It was already raised in 2007, but to date nothing has been implemented for it.

    Workaround at the moment is to make Address into an Entity, but maintain the lifecycle through User.

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