[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5046) Cannot nest collections of Embeddable and basic type on an entity
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 29 22:01:31 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole updated HHH-5046:
--------------------------------
Issue Type: New Feature (was: Bug)
Yes this is correct. Are you requesting such a feature be added?
> 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