EntityType edmEntityType = view.getEdmEntityType();
String jpaEntityName = view.getJPAEntityType().getName();
JPAEdmMappingModelAccess mappingModelAccess = view.getJPAEdmMappingModelAccess();
String edmEntityTypeName = null;
if (mappingModelAccess != null && mappingModelAccess.isMappingModelExists()) {
edmEntityTypeName = mappingModelAccess.mapJPAEntityType(jpaEntityName);
}
JPAEdmMapping mapping = new JPAEdmMappingImpl();
mapping.setJPAType(view.getJPAEntityType().getJavaType());