JPAEdmPropertyView propertyView = new JPAEdmProperty(schemaView);
propertyView.getBuilder().build();
currentEdmEntityType.setProperties(propertyView.getEdmPropertyList());
if (propertyView.getJPAEdmNavigationPropertyView() != null) {
JPAEdmNavigationPropertyView navPropView = propertyView.getJPAEdmNavigationPropertyView();
if (navPropView.getConsistentEdmNavigationProperties() != null
&& !navPropView.getConsistentEdmNavigationProperties().isEmpty()) {
currentEdmEntityType.setNavigationProperties(navPropView.getConsistentEdmNavigationProperties());
}
}
JPAEdmKeyView keyView = propertyView.getJPAEdmKeyView();
currentEdmEntityType.setKey(keyView.getEdmKey());