I have an entity called “Opportunity” it has a composition attribute called “Logistics”
The entity Logistics also has a composition attribute called “delegate”
If you Create a new Opportunity, then Create a new Logstics, then create a new Delegate and try to save.
The following error is thrown.
IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: com.company.ericssonapp.entity.Logistic-?(05d53f8f-ec30-995c-3774-b5e838ee717c) [new].
The error is not thrown as long as the Logistics AND Opportunity screens are saved before going back and adding Delegates