[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-5046) Cannot nest collections of Embeddable and basic type on an entity

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Mar 30 09:59:31 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-5046.
-------------------------------

    Resolution: Rejected

I was making sure I understood correctly what you were asking

> 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: New Feature
>          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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list