public class JpaMetamodelMappingContext extends AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
MappingContext
implementation based on a Jpa Metamodel
.Constructor and Description |
---|
JpaMetamodelMappingContext(javax.persistence.metamodel.Metamodel model) |
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, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
public JpaMetamodelMappingContext(Set<javax.persistence.metamodel.Metamodel> models)
Metamodel
based MappingContext
.models
- must not be null or empty.public JpaMetamodelMappingContext(javax.persistence.metamodel.Metamodel model)
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-2014–2015 Pivotal Software, Inc.. All rights reserved.