Class JdbcMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty>
org.springframework.data.relational.core.mapping.RelationalMappingContext
org.springframework.data.jdbc.core.mapping.JdbcMappingContext
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,InitializingBean
,ApplicationContextAware
,ApplicationEventPublisherAware
,EnvironmentAware
,MappingContext<RelationalPersistentEntity<?>,
RelationalPersistentProperty>
MappingContext
implementation for JDBC.- Author:
- Jens Schauder, Greg Turnquist, Kazuki Shimizu, Oliver Gierke, Mark Paluch, Paul-Christian Volkmer
-
Constructor Summary
ConstructorDescriptionCreates a newJdbcMappingContext
.JdbcMappingContext
(NamingStrategy namingStrategy) Creates a newJdbcMappingContext
using the givenNamingStrategy
. -
Method Summary
Modifier and TypeMethodDescriptionprotected RelationalPersistentProperty
createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) protected boolean
Methods inherited from class org.springframework.data.relational.core.mapping.RelationalMappingContext
applyDefaults, createPersistentEntity, getAggregatePath, getAggregatePath, getNamingStrategy, getPersistentEntity, isForceQuote, isSingleQueryLoadingEnabled, setApplicationContext, setForceQuote, setSingleQueryLoadingEnabled, setSqlIdentifierSanitizer
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setBeanFactory, setEnvironment, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreateProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
JdbcMappingContext
public JdbcMappingContext()Creates a newJdbcMappingContext
. -
JdbcMappingContext
Creates a newJdbcMappingContext
using the givenNamingStrategy
.- Parameters:
namingStrategy
- must not be null.
-
-
Method Details
-
createPersistentProperty
protected RelationalPersistentProperty createPersistentProperty(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) - Overrides:
createPersistentProperty
in classRelationalMappingContext
-
shouldCreatePersistentEntityFor
- Overrides:
shouldCreatePersistentEntityFor
in classAbstractMappingContext<RelationalPersistentEntity<?>,
RelationalPersistentProperty>
-