List of usage examples for org.springframework.data.mapping.context MappingContextEvent getPersistentEntity
public E getPersistentEntity()
From source file:com.frank.search.solr.core.schema.SolrPersistentEntitySchemaCreator.java
@Override public void onApplicationEvent(MappingContextEvent<?, ?> event) { if (features.contains(Feature.CREATE_MISSING_FIELDS)) { if (event.getPersistentEntity() instanceof SolrPersistentEntity) { SolrPersistentEntity<?> entity = (SolrPersistentEntity<?>) event.getPersistentEntity(); if (!processed.contains(entity.getType())) { process(entity);//from w w w . j av a 2 s .c o m } } } }