When using hibernate, I get a ConcurrentModificationException when I have an entity A that contains an embedded collection of B, where each element of B contains a collection of Strings. In other words, A is an entity class and B is an embeddable class. A has a collection of B. Each B has it's own collection of Strings.
This appears to be a known hibernate bug (HHH-4313), described at http://opensource.atlassian.com/projects/hibernate/browse/HHH-4313
Unfortunately for me, the bug priority is low, and it hasn't been resolved since it was filed back on March 29th of 07. So I don't have high hopes that it will be resolved any time soon. However, I have been unable to find a workaround without converting B to an entity class, which I really don't want to do.
Has anyone found a workaround for this particular bug?