Spring Data JPA

org.springframework.data.jpa.mapping
Class JpaMetamodelMappingContext

java.lang.Object
  extended by org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>,JpaPersistentProperty>
      extended by org.springframework.data.jpa.mapping.JpaMetamodelMappingContext
All Implemented Interfaces:
EventListener, Aware, ApplicationContextAware, ApplicationEventPublisherAware, ApplicationListener<ContextRefreshedEvent>, 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

Constructor Summary
JpaMetamodelMappingContext(javax.persistence.metamodel.Metamodel model)
          Creates a new JPA Metamodel based MappingContext.
 
Method Summary
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)
           
 
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, initialize, onApplicationEvent, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaMetamodelMappingContext

public JpaMetamodelMappingContext(javax.persistence.metamodel.Metamodel model)
Creates a new JPA Metamodel based MappingContext.

Parameters:
model - must not be null.
Method Detail

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>

Spring Data JPA

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.