jdaugherty commented on PR #16344: URL: https://github.com/apache/grails-core/pull/16344#issuecomment-5717348903
Follow-up on the version-1 observation above: it is not specific to `tablePerConcreteClass`. Any entity whose id is generated before the insert (`increment`, `table`, ...) gets an `INSERT` followed by an `UPDATE` in the first flush on Hibernate 7, because dirty tracking is only activated in `onPostInsert`, which for a deferred insert fires after the flush has already dirty-checked the untracked instance. Union hierarchies are always hit because they cannot use `identity`. Filed as #16349 with the reproduction, cause, and a suggested fix; `d60b7a74fc` corrects the comment in the new union feature to say so. -- 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]
