public interface PersisterClassResolver extends Service
Given an entity or collection mapping, resolve the appropriate persister class to use.
<p/>
The persister class is chosen according to the following rules:<ol>
<li>the persister class defined explicitly via annotation or XML</li>
<li>the persister class returned by the installed PersisterClassResolver
</li>
<li>the default provider as chosen by Hibernate Core (best choice most of the time)</li>
</ol>
Modifier and Type | Method and Description |
---|---|
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.
|
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 metadataClass<? 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 metadataCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.