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 c864e7c07a31a4981b04348006472835357a4c23
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Mon Feb 9 18:16:08 2026 -0600

     UserTypeFetcher.getUserType to accept GrailsHibernatePersistentProperty
---
 .../org/grails/orm/hibernate/cfg/domainbinding/ColumnBinder.java     | 2 +-
 .../org/grails/orm/hibernate/cfg/domainbinding/UserTypeFetcher.java  | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/ColumnBinder.java
 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/ColumnBinder.java
index 85f7a25d1b..5df88cd32c 100644
--- 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/ColumnBinder.java
+++ 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/ColumnBinder.java
@@ -92,7 +92,7 @@ public class ColumnBinder {
             column.setCustomWrite(cc.getWrite());
         }
 
-        Class<?> userType = userTypeFetcher.getUserType(property);
+        Class<?> userType = 
userTypeFetcher.getUserType((GrailsHibernatePersistentProperty) property);
         String columnName = 
columnNameForPropertyAndPathFetcher.getColumnNameForPropertyAndPath(property, 
path, cc);
         if ((property instanceof Association association) && userType == null) 
{
             // Only use conventional naming when the column has not been 
explicitly mapped.
diff --git 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/UserTypeFetcher.java
 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/UserTypeFetcher.java
index ca0305fca6..4dc8034296 100644
--- 
a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/UserTypeFetcher.java
+++ 
b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/UserTypeFetcher.java
@@ -3,7 +3,6 @@ package org.grails.orm.hibernate.cfg.domainbinding;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.grails.datastore.mapping.model.PersistentProperty;
 import org.grails.orm.hibernate.cfg.GrailsHibernatePersistentProperty;
 import org.grails.orm.hibernate.cfg.PropertyConfig;
 
@@ -15,9 +14,9 @@ public class UserTypeFetcher {
     public UserTypeFetcher() {
     }
 
-    public Class<?> getUserType(PersistentProperty currentGrailsProp) {
+    public Class<?> getUserType(GrailsHibernatePersistentProperty 
currentGrailsProp) {
         Class<?> userType = null;
-        PropertyConfig config = ((GrailsHibernatePersistentProperty) 
currentGrailsProp).getMappedForm();
+        PropertyConfig config = currentGrailsProp.getMappedForm();
         Object typeObj = config.getType();
         if (typeObj instanceof Class<?>) {
             userType = (Class<?>)typeObj;

Reply via email to