This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit c3445ed8d6ebe3f6ba423663fda3e4e6e8efd26c
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Feb 5 08:34:47 2026 -0600

    GrailsHibernatePersistentProperty
---
 .../grails/orm/hibernate/cfg/domainbinding/GrailsPropertyBinder.java   | 3 +--
 .../orm/hibernate/cfg/domainbinding/collectionType/CollectionType.java | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/GrailsPropertyBinder.java
 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/GrailsPropertyBinder.java
index eccb2b7916..93c4bb5e1f 100644
--- 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/GrailsPropertyBinder.java
+++ 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/GrailsPropertyBinder.java
@@ -77,8 +77,7 @@ public class GrailsPropertyBinder {
             new 
SimpleValueBinder(namingStrategy).bindSimpleValue(currentGrailsProp, 
null,(SimpleValue) value, EMPTY_PATH);
         }
         else if (collectionType != null) {
-            String typeName = currentGrailsProp.getTypeName();
-            if ("serializable".equals(typeName)) {
+            if (currentGrailsProp.isSerializableType()) {
                 value = new BasicValue(metadataBuildingContext, table);
                 new 
SimpleValueBinder(namingStrategy).bindSimpleValue(currentGrailsProp, 
null,(SimpleValue) value, EMPTY_PATH);// No specific binder call needed
             }
diff --git 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/collectionType/CollectionType.java
 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/collectionType/CollectionType.java
index 5f2ef64905..cf36aaa4bb 100644
--- 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/collectionType/CollectionType.java
+++ 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/collectionType/CollectionType.java
@@ -32,9 +32,6 @@ public abstract class CollectionType {
     protected final GrailsDomainBinder binder;
     protected final MetadataBuildingContext buildingContext;
 
-    private boolean initialized;
-
-    private final Map<Class<?>, CollectionType> INSTANCES = new HashMap<>();
 
     public abstract Collection create(ToMany property, PersistentClass owner,
                                       String path, @Nonnull 
InFlightMetadataCollector mappings, String sessionFactoryBeanName) throws 
MappingException;

Reply via email to