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