public class JpaMetamodelMappingContext extends AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
MappingContext implementation based on a Jpa Metamodel.| Constructor and Description |
|---|
JpaMetamodelMappingContext(Set<javax.persistence.metamodel.Metamodel> models)
Creates a new JPA
Metamodel based MappingContext. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> |
createPersistentEntity(TypeInformation<T> typeInformation) |
protected JpaPersistentProperty |
createPersistentProperty(Field field,
PropertyDescriptor descriptor,
org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> owner,
SimpleTypeHolder simpleTypeHolder) |
protected boolean |
shouldCreatePersistentEntityFor(TypeInformation<?> type) |
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrictpublic JpaMetamodelMappingContext(Set<javax.persistence.metamodel.Metamodel> models)
Metamodel based MappingContext.models - must not be null or empty.protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> createPersistentEntity(TypeInformation<T> typeInformation)
createPersistentEntity in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>protected JpaPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor, org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> owner, SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>protected boolean shouldCreatePersistentEntityFor(TypeInformation<?> type)
shouldCreatePersistentEntityFor in class AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.