Skip to content

Commit 4343198

Browse files
committed
Change proxyHandler bean type from ProxyHandlerAdapter to ProxyHandler
Closes gh-35
1 parent 801cf29 commit 4343198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grace-plugin/src/main/groovy/grails/plugin/hibernate/HibernateGormAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import grails.config.Config;
4141
import grails.core.GrailsApplication;
4242
import grails.core.GrailsClass;
43+
import grails.core.support.proxy.ProxyHandler;
4344
import org.grails.core.artefact.DomainClassArtefactHandler;
4445
import org.grails.datastore.gorm.events.ConfigurableApplicationContextEventPublisher;
4546
import org.grails.datastore.gorm.proxy.ProxyHandlerAdapter;
@@ -149,7 +150,7 @@ public HibernateProxyHandler hibernateProxyHandler() {
149150
@Bean
150151
@Order(10)
151152
@ConditionalOnMissingBean
152-
public ProxyHandlerAdapter proxyHandler(HibernateProxyHandler hibernateProxyHandler) {
153+
public ProxyHandler proxyHandler(HibernateProxyHandler hibernateProxyHandler) {
153154
return new ProxyHandlerAdapter(hibernateProxyHandler);
154155
}
155156

0 commit comments

Comments
 (0)