org.hibernate.proxy.map
Class MapProxyFactory
java.lang.Object
org.hibernate.proxy.map.MapProxyFactory
- ProxyFactory
public class MapProxyFactory
extends java.lang.Object
postInstantiate
public void postInstantiate(String entityName,
Class persistentClass,
Set interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
AbstractComponentType componentIdType)
throws HibernateException
Called immediately after instantiation of this factory.
Essentially equivalent to contructor injection, but contracted
here via interface.
- postInstantiate in interface ProxyFactory
entityName
- The name of the entity for which this factory should
generate proxies.persistentClass
- The entity class for which to generate proxies;
not always the same as the entityName.interfaces
- The interfaces to expose in the generated proxy;
HibernateProxy
is already included in this collection.getIdentifierMethod
- Reference to the identifier getter method;
invocation on this method should not force initializationsetIdentifierMethod
- Reference to the identifier setter method;
invocation on this method should not force initializationcomponentIdType
- For composite identifier types, a reference to
the type
of the identifier
property; again accessing the id should generally not cause
initialization - but need to bear in mind
mappings.