public class ByteBuddyGroovyProxyFactory extends org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory
A ProxyFactory implementation for ByteBuddy that uses ByteBuddyGroovyInterceptor. The proxy class comes from GroovyProxyClassBuilder, and is generated and checked once, in postInstantiate, so getProxy has nothing left to fail on but the instantiation itself. Mirrors the Hibernate 7 implementation in grails-data-hibernate7.
| Constructor and description |
|---|
ByteBuddyGroovyProxyFactory(org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyHelper byteBuddyProxyHelper) |
ByteBuddyGroovyProxyFactory(org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyHelper byteBuddyProxyHelper, boolean lazyToString) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public org.hibernate.proxy.HibernateProxy |
getProxy(java.io.Serializable id, org.hibernate.engine.spi.SharedSessionContractImplementor session) |
|
public void |
postInstantiate(java.lang.String entityName, java.lang.Class persistentClass, java.util.Set<java.lang.Class> interfaces, java.lang.reflect.Method getIdentifierMethod, java.lang.reflect.Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType) |
| Methods inherited from class | Name |
|---|---|
class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory |
org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#equals(java.lang.Object), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#getClass(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#getProxy(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#hashCode(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#notify(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#notifyAll(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#postInstantiate(java.lang.String, java.lang.Class, java.util.Set, java.lang.reflect.Method, java.lang.reflect.Method, org.hibernate.type.CompositeType), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#toString(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#wait(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#wait(long), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory#wait(long, int) |