borinquenkid commented on code in PR #16533:
URL: https://github.com/apache/grails-core/pull/16533#discussion_r4213507706
##########
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:
Fixed in fe756a0b42: `CreateKeyForProps` and `GrailsPropertyBinder` now
share `HibernateToManyProperty.isBoundAsCollection`, which excludes user-type
and serializable to-many properties, so their unique group key on the owner
table is created again. Covered by a `CreateKeyForPropsSpec` row and a boot
case in `UniqueGroupEnumAndCollectionSpec` that asserts the key and rejects a
duplicate.
--
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]