org.springframework.data.jpa.mapping
Class JpaMetamodelMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
org.springframework.data.jpa.mapping.JpaMetamodelMappingContext
- All Implemented Interfaces:
- Aware, InitializingBean, ApplicationEventPublisherAware, MappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
public class JpaMetamodelMappingContext
- extends AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
MappingContext implementation based on a Jpa Metamodel.
- Since:
- 1.3
- Author:
- Oliver Gierke
| Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext |
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaMetamodelMappingContext
public JpaMetamodelMappingContext(javax.persistence.metamodel.Metamodel model)
- Creates a new JPA
Metamodel based MappingContext.
- Parameters:
model - must not be null.
createPersistentEntity
protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> createPersistentEntity(TypeInformation<T> typeInformation)
- Specified by:
createPersistentEntity in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
createPersistentProperty
protected JpaPersistentProperty createPersistentProperty(Field field,
PropertyDescriptor descriptor,
org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> owner,
SimpleTypeHolder simpleTypeHolder)
- Specified by:
createPersistentProperty in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
shouldCreatePersistentEntityFor
protected boolean shouldCreatePersistentEntityFor(TypeInformation<?> type)
- Overrides:
shouldCreatePersistentEntityFor in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.