类 ScopedBeanInterceptor
- java.lang.Object
- org.hibernate.EmptyInterceptor
- org.springframework.orm.hibernate3.support.ScopedBeanInterceptor
- 所有已实现的接口:
Serializable
,Interceptor
@Deprecated public class ScopedBeanInterceptor extends EmptyInterceptor
已过时。as of Spring 4.3, in favor of Hibernate 4.x/5.xHibernate3 interceptor used for getting the proper entity name for scoped beans. As scoped bean classes are proxies generated at runtime, they are unrecognized by the persisting framework. Using this interceptor, the original scoped bean class is retrieved end exposed to Hibernate for persisting.Usage example:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> ... <property name="entityInterceptor"> <bean class="org.springframework.orm.hibernate3.support.ScopedBeanInterceptor"/> </property> </bean>
- 从以下版本开始:
- 2.0
- 作者:
- Costin Leau, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 org.hibernate.EmptyInterceptor
INSTANCE
构造器概要
构造器 构造器 说明 ScopedBeanInterceptor()
已过时。
方法概要
从类继承的方法 org.hibernate.EmptyInterceptor
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onLoad, onPrepareStatement, onSave, postFlush, preFlush
构造器详细资料
ScopedBeanInterceptor
public ScopedBeanInterceptor()
已过时。
方法详细资料
getEntityName
public String getEntityName(Object entity)
已过时。- 指定者:
getEntityName
在接口中Interceptor
- 覆盖:
getEntityName
在类中EmptyInterceptor