Cannot nest collections of Embeddable and basic type on an entity
-----------------------------------------------------------------
Key: HHH-5046
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5046
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.0-CR-2
Environment: Hibernate-entity-manager 3.5.0-CR-2, database H2
Reporter: Christophe LANNOY
Attachments: stacktrace, testEmbColl.zip
We cannot nest a String collection on an embeddable element which is inside a collection
or a map on an Entity : Entity manager do not start :
Persistence.createEntityManagerFactory("manager1"); give us :
Persistence.createEntityManagerFactory("manager1", configOverrides);
...
Caused by: java.util.ConcurrentModificationException -> see stacktrace file
attached
Mapping is :
@javax.persistence.Entity
public class Entity implements Serializable {
...
@ElementCollection
private Map<String, EmbElement> embElements =new HashMap<String,
EmbElement>();
... }
@Embeddable
public class EmbElement implements Serializable {
...
@ElementCollection
private Set<String> sstring = new HashSet<String>();
...}
The Zip attached contains the junit class test : EmbededMapTest wich reproduce this
error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira