com.emc.documentum.springdata.entitymanager.mapping.DctmMappingContext Maven / Gradle / Ivy
The newest version!
package com.emc.documentum.springdata.entitymanager.mapping;
import org.springframework.data.mapping.context.AbstractMappingContext;
import org.springframework.data.mapping.model.SimpleTypeHolder;
import org.springframework.data.util.TypeInformation;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
/**
* Created by waliar on 7/5/16.
*/
public class DctmMappingContext extends AbstractMappingContext, DctmPersistentProperty> {
@Override
protected BasicDctmPersistentEntity> createPersistentEntity(TypeInformation typeInformation) {
return new BasicDctmPersistentEntity(typeInformation);
}
@Override
protected DctmPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor,
BasicDctmPersistentEntity> owner,
SimpleTypeHolder simpleTypeHolder) {
return new BasicDctmPersistentProperty(field,descriptor, owner, simpleTypeHolder);
}
}