Merging of new entities can fail depending on cascade order

Solution In Progress - Updated -

Issue

Depending on the initialization order of entities a cascaded merge is failing with java.lang.IllegalStateException: MergeContext#attempt to create managed -> managed mapping with different entities

Environment

EAP 7.1 CP2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.