接口 PersisterClassResolver
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
StandardPersisterClassResolver
public interface PersisterClassResolver extends Service
Given an entity or collection mapping, resolve the appropriate persister class to use. The persister class is chosen according to the following rules:- the persister class defined explicitly via annotation or XML
- the persister class returned by the installed
PersisterClassResolver - the default provider as chosen by Hibernate Core (best choice most of the time)
- 作者:
- Emmanuel Bernard
, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Class<? extends CollectionPersister>getCollectionPersisterClass(Collection metadata)Returns the collection persister class for a given collection role or null if the collection persister class should be the default.Class<? extends EntityPersister>getEntityPersisterClass(PersistentClass metadata)Returns the entity persister class for a given entityName or null if the entity persister class should be the default.
-
-
-
方法详细资料
-
getEntityPersisterClass
Class<? extends EntityPersister> getEntityPersisterClass(PersistentClass metadata)
Returns the entity persister class for a given entityName or null if the entity persister class should be the default.- 参数:
metadata- The entity metadata- 返回:
- The entity persister class to use
-
getCollectionPersisterClass
Class<? extends CollectionPersister> getCollectionPersisterClass(Collection metadata)
Returns the collection persister class for a given collection role or null if the collection persister class should be the default.- 参数:
metadata- The collection metadata- 返回:
- The collection persister class to use
-
-