public class HibernateMappingContext extends AbstractMappingContext
A Mapping context for Hibernate
Fields inherited from class | Fields |
---|---|
class AbstractMappingContext |
CONFIGURATION_PREFIX, GROOVY_PROXY_FACTORY_NAME, JAVASIST_PROXY_FACTORY, conversionService, entityValidators, eventListeners, persistentEntities, persistentEntitiesByDiscriminator, persistentEntitiesByName, persistentEntitiesByParent, proxyFactory, validatorRegistry |
Constructor and description |
---|
HibernateMappingContext
(HibernateConnectionSourceSettings settings, java.lang.Object contextObject, java.lang.Class persistentClasses) Construct a HibernateMappingContext for the given arguments |
HibernateMappingContext
(HibernateConnectionSourceSettings settings, java.lang.Class persistentClasses) |
HibernateMappingContext
() |
Type Params | Return Type | Name and description |
---|---|---|
|
public PersistentEntity |
createEmbeddedEntity(java.lang.Class type) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass, boolean external) |
|
public MappingFactory |
getMappingFactory() |
|
public MappingConfigurationStrategy |
getMappingSyntaxStrategy() |
|
public PersistentEntity |
getPersistentEntity(java.lang.String name) |
|
public static boolean |
isDomainClass(java.lang.Class clazz) |
|
protected boolean |
isValidMappingStrategy(java.lang.Class javaClass, java.lang.Object mappingStrategy) |
|
public void |
setDefaultConstraints(groovy.lang.Closure defaultConstraints) Sets the default constraints to be used |
|
protected boolean |
supportsCustomType(java.lang.Class<?> propertyType) |
Construct a HibernateMappingContext for the given arguments
settings
- The HibernateConnectionSourceSettings settingscontextObject
- The context object (for example a Spring ApplicationContext)persistentClasses
- The persistent classesSets the default constraints to be used
defaultConstraints
- The default constraints