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 825ec8036c9e7e9c591a098600c8202c004c9288 Author: Walter B Duque de Estrada <[email protected]> AuthorDate: Fri Jan 23 13:49:43 2026 -0600 update progress --- ...rSpec.groovy => HibernateProxyHandler5Spec.groovy} | 11 +++++++---- ...rSpec.groovy => HibernateProxyHandler6Spec.groovy} | 19 +++++++++++-------- ...rSpec.groovy => HibernateProxyHandler7Spec.groovy} | 8 +++++++- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy b/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler5Spec.groovy similarity index 86% rename from grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy rename to grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler5Spec.groovy index ce09bc546e..bdffcd8bfb 100644 --- a/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy +++ b/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler5Spec.groovy @@ -1,13 +1,16 @@ package org.grails.orm.hibernate.proxy +import org.slf4j.Logger +import org.slf4j.LoggerFactory import grails.gorm.specs.HibernateGormDatastoreSpec import org.apache.grails.data.testing.tck.domains.Location import org.hibernate.Hibernate import spock.lang.Shared import org.grails.datastore.gorm.proxy.GroovyProxyFactory -class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { +class HibernateProxyHandler5Spec extends HibernateGormDatastoreSpec { + private static final Logger LOG = LoggerFactory.getLogger(HibernateProxyHandler5Spec.class) @Shared HibernateProxyHandler proxyHandler = new HibernateProxyHandler() void setupSpec() { @@ -30,9 +33,9 @@ class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { // Get a proxy without initializing it Location proxyLocation = Location.proxy(location.id) - println "proxyLocation class: ${proxyLocation.getClass().name}" - println "proxyLocation instanceof EntityProxy: ${proxyLocation instanceof org.grails.datastore.mapping.proxy.EntityProxy}" - println "Hibernate.isInitialized(proxyLocation): ${org.hibernate.Hibernate.isInitialized(proxyLocation)}" + LOG.info "proxyLocation class: ${proxyLocation.getClass().name}" + LOG.info "proxyLocation instanceof EntityProxy: ${proxyLocation instanceof org.grails.datastore.mapping.proxy.EntityProxy}" + LOG.info "Hibernate.isInitialized(proxyLocation): ${org.hibernate.Hibernate.isInitialized(proxyLocation)}" expect: proxyHandler.isInitialized(proxyLocation) == false diff --git a/grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy b/grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler6Spec.groovy similarity index 80% rename from grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy rename to grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler6Spec.groovy index ceaf3683a3..a61b9a4867 100644 --- a/grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy +++ b/grails-data-hibernate6/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler6Spec.groovy @@ -1,13 +1,16 @@ package org.grails.orm.hibernate.proxy +import org.slf4j.Logger +import org.slf4j.LoggerFactory import grails.gorm.specs.HibernateGormDatastoreSpec import org.apache.grails.data.testing.tck.domains.Location import org.hibernate.Hibernate import spock.lang.Shared import org.grails.datastore.gorm.proxy.GroovyProxyFactory -class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { +class HibernateProxyHandler6Spec extends HibernateGormDatastoreSpec { + private static final Logger LOG = LoggerFactory.getLogger(HibernateProxyHandler6Spec.class) @Shared HibernateProxyHandler proxyHandler = new HibernateProxyHandler() void setupSpec() { @@ -30,9 +33,9 @@ class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { // Get a proxy without initializing it Location proxyLocation = Location.proxy(location.id) - println "proxyLocation class: ${proxyLocation.getClass().name}" - println "proxyLocation instanceof EntityProxy: ${proxyLocation instanceof org.grails.datastore.mapping.proxy.EntityProxy}" - println "Hibernate.isInitialized(proxyLocation): ${org.hibernate.Hibernate.isInitialized(proxyLocation)}" + LOG.info "proxyLocation class: ${proxyLocation.getClass().name}" + LOG.info "proxyLocation instanceof EntityProxy: ${proxyLocation instanceof org.grails.datastore.mapping.proxy.EntityProxy}" + LOG.info "Hibernate.isInitialized(proxyLocation): ${org.hibernate.Hibernate.isInitialized(proxyLocation)}" expect: proxyHandler.isInitialized(proxyLocation) == false @@ -63,13 +66,13 @@ class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { // Get a proxy without initializing it Location proxyLocation = Location.proxy(location.id) - println "Groovy proxyLocation class: ${proxyLocation.getClass().name}" - println "Groovy proxyLocation instanceof GroovyObject: ${proxyLocation instanceof GroovyObject}" - println "Groovy proxyLocation MetaClass: ${proxyLocation.getMetaClass().getClass().name}" + LOG.info "Groovy proxyLocation class: ${proxyLocation.getClass().name}" + LOG.info "Groovy proxyLocation instanceof GroovyObject: ${proxyLocation instanceof GroovyObject}" + LOG.info "Groovy proxyLocation MetaClass: ${proxyLocation.getMetaClass().getClass().name}" if (proxyLocation instanceof GroovyObject) { def mc = proxyLocation.getMetaClass() if (mc instanceof org.codehaus.groovy.runtime.HandleMetaClass) { - println "Groovy proxyLocation Adaptee: ${mc.getAdaptee().getClass().name}" + LOG.info "Groovy proxyLocation Adaptee: ${mc.getAdaptee().getClass().name}" } } diff --git a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler7Spec.groovy similarity index 86% rename from grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy rename to grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler7Spec.groovy index 1b34fe9b1e..caf9336232 100644 --- a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandlerSpec.groovy +++ b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler7Spec.groovy @@ -1,13 +1,16 @@ package org.grails.orm.hibernate.proxy +import org.slf4j.Logger +import org.slf4j.LoggerFactory import grails.gorm.specs.HibernateGormDatastoreSpec import org.apache.grails.data.testing.tck.domains.Location import org.hibernate.Hibernate import spock.lang.Shared import org.grails.datastore.gorm.proxy.GroovyProxyFactory -class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { +class HibernateProxyHandler7Spec extends HibernateGormDatastoreSpec { + private static final Logger LOG = LoggerFactory.getLogger(HibernateProxyHandler7Spec.class) @Shared HibernateProxyHandler proxyHandler = new HibernateProxyHandler() void setupSpec() { @@ -30,6 +33,9 @@ class HibernateProxyHandlerSpec extends HibernateGormDatastoreSpec { // Get a proxy without initializing it Location proxyLocation = Location.proxy(location.id) + LOG.info "proxyLocation class: ${proxyLocation.getClass().name}" + LOG.info "proxyLocation instanceof EntityProxy: ${proxyLocation instanceof org.grails.datastore.mapping.proxy.EntityProxy}" + LOG.info "Hibernate.isInitialized(proxyLocation): ${org.hibernate.Hibernate.isInitialized(proxyLocation)}" expect: proxyHandler.isInitialized(proxyLocation) == false
