virtualdogbert opened a new issue, #14454: URL: https://github.com/apache/grails-core/issues/14454
### Steps to Reproduce 1. Run the sample application 2. hit the following urls and note the sql output on the console on each url. - http://localhost:8080/test/create_child - http://localhost:8080/test/update_a - http://localhost:8080/test/create_parent - http://localhost:8080/test/update_parent This creates a child object and updates one of it's properties, and create a parent and updates one of its properties. There are also urls for updating the parents property through the child: http://localhost:8080/test/update_p and updating both a child and parent property through the child: http://localhost:8080/test/update_ap The extra urls are so that you can see the output of the various scenarios. I also tried using the @DynamicUpdate hibernate annotations but those don't seem to work either. Normally I also wouldn't put the logic in the controller, but this is just to create a quick app to debug. ### Expected Behaviour When you have dynamic update set on a parent and child domain object, updating one of the child's properties should result in sql that only updates the child's property, and not the parents. When updating the parents properties alone, then the only the parent will be updated, and only the properties changed. ### Actual Behaviour When you have dynamic update set on a parent and child domain object, updates to the the child object, do a full update of both the parent and child object. When updating just the parent domain object only the properties that have changed are updated. ### Environment Information macOS 10.14.4 (18E226) Grails 3.3.9 java version "1.8.0_171" ### Example Application https://github.com/virtualdogbert/dynamicUpdate -- 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]
