rzo1 opened a new pull request, #228:
URL: https://github.com/apache/openjpa/pull/228

   https://issues.apache.org/jira/browse/OPENJPA-3025
   
   **Stacked on #224 (OPENJPA-3024).** Only the last commit belongs to this PR; 
it will be rebased once #224 is merged.
   
   Same bug as OPENJPA-3024, but in `orm.xml` and older: 
`orphan-removal="true"` together with `<cascade-remove/>` or `<cascade-all/>` 
lost the orphan removal, because `XMLPersistenceMetaDataParser` applies orphan 
removal when the element starts and `finishField()` → `setCascades()` 
overwrites it.
   
   Orphan removal is now applied after the cascades in `finishField()`. The 4.2 
migration note is reworded to describe the behaviour for annotations and XML.
   
   `TestOrphanRemovalXml` (one-to-many and one-to-one, cascade-all and 
cascade-remove). Full suite passes on Derby and H2.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to