One-To-Many in a Embeddable throw ConcurrentModificationException

Description

From what I have understand the JPA 2.1 support "An embeddable class may contain a relationship to an entity or collection of entities."

I have tried various mapping with no luck, they all throw a ConcurrentModificationException.

Test case attached to the jira

Environment

macOS 10.12.1

Activity

Show:
Vlad Mihalcea
December 5, 2016, 6:29 AM
Edited

I added a replicating test case in hibernate-core:

Assuming we fix the ConcurrentModificationException so that, in InFlightMetadataCollectorImpl, instead of:

we do this:

The mapping will still fail with the following error message:

There is more to be changed to support such a mapping.

Vlad Mihalcea
December 5, 2016, 3:04 PM

Assignee

Unassigned

Reporter

Flemming Harms

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure