matrei opened a new pull request, #16542: URL: https://github.com/apache/grails-core/pull/16542
Related to #16532. ## Problem When neither side of a bidirectional many-to-many declares `belongsTo`, both collections are bound inverse, so nothing is written to the join table and the relationship is silently lost. ## Change Log a warning at startup for such a mapping, once per relationship, naming both sides and the `belongsTo` to declare. The mapping itself is unchanged; actually choosing an owner (or failing at startup) changes runtime behavior and is left for a major version. The many-to-many guide now says that one side must declare `belongsTo`. ## Tests New `ManyToManyWithoutOwnerWarningSpec` (the warning feature fails without the change). `grails-data-hibernate5-core`: 621 tests, 0 failures. No existing fixture in the module triggers the warning. -- 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]
