jamesfredley commented on code in PR #16533:
URL: https://github.com/apache/grails-core/pull/16533#discussion_r4215266691
##########
grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/util/CreateKeyForProps.java:
##########
@@ -48,6 +49,12 @@ protected CreateKeyForProps(
}
public void createKeyForProps(HibernatePersistentProperty grailsProp,
String path, Table table, String columnName) {
+ if (grailsProp instanceof HibernateToManyProperty &&
!grailsProp.isSerializableType()) {
Review Comment:
The latest commit applies this early return only when the to-many is bound
as a collection. A collection stored as a scalar column through a user type
still receives its unique-group key, and the new specs cover key creation and
duplicate rejection.
--
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]