private String getRelationShipName(final EdmNavigationProperty navigationProperty) throws EdmException { EdmMapping mapping = navigationProperty.getMapping(); String relationShipName = null; if (mapping != null) { relationShipName = mapping.getInternalName(); } else { relationShipName = navigationProperty.getName(); } return relationShipName; }
private String getRelationShipName(final EdmNavigationProperty navigationProperty) throws EdmException { EdmMapping mapping = navigationProperty.getMapping(); String relationShipName = null; if (mapping != null) { relationShipName = mapping.getInternalName(); } else { relationShipName = navigationProperty.getName(); } return relationShipName; }
private String getRelationShipName(final EdmNavigationProperty navigationProperty) throws EdmException { EdmMapping mapping = navigationProperty.getMapping(); String relationShipName = null; if (mapping != null) { relationShipName = mapping.getInternalName(); } else { relationShipName = navigationProperty.getName(); } return relationShipName; }
private String getRelationShipName(final EdmNavigationProperty navigationProperty) throws EdmException { EdmMapping mapping = navigationProperty.getMapping(); String relationShipName = null; if (mapping != null) { relationShipName = mapping.getInternalName(); } else { relationShipName = navigationProperty.getName(); } return relationShipName; }
for (EdmNavigationProperty navigationProperty : navigationPropertyList) { methodName = getAccessModifierName(navigationProperty.getName(), navigationProperty.getMapping(), ACCESS_MODIFIER_GET); Method getterMethod = null; JPAEdmMapping jpaEdmMapping = (JPAEdmMapping)navigationProperty.getMapping(); if(jpaEdmMapping != null && jpaEdmMapping.isVirtualAccess()) { getterMethod = jpaEntity.getClass().getMethod(ACCESS_MODIFIER_GET, String.class); navigationProperty.getMapping().getInternalName()); navigationMap.put(navigationProperty.getName(), result);
for (EdmNavigationProperty navigationProperty : navigationPropertyList) { methodName = getAccessModifierName(navigationProperty.getName(), navigationProperty.getMapping(), ACCESS_MODIFIER_GET); Method getterMethod = null; JPAEdmMapping jpaEdmMapping = (JPAEdmMapping)navigationProperty.getMapping(); if(jpaEdmMapping != null && jpaEdmMapping.isVirtualAccess()) { getterMethod = jpaEntity.getClass().getMethod(ACCESS_MODIFIER_GET, String.class); navigationProperty.getMapping().getInternalName()); navigationMap.put(navigationProperty.getName(), result);
if (navigationProperty.getMapping() instanceof JPAEdmMappingImpl) { jpaEdmMappingImpl = (JPAEdmMappingImpl) navigationProperty.getMapping();
if (navigationProperty.getMapping() instanceof JPAEdmMappingImpl) { jpaEdmMappingImpl = (JPAEdmMappingImpl) navigationProperty.getMapping();
private static String getPropertyName(final CommonExpression whereExpression) throws EdmException, ODataJPARuntimeException { EdmTyped edmProperty = ((PropertyExpression) whereExpression).getEdmProperty(); EdmMapping mapping; if (edmProperty instanceof EdmNavigationProperty) { EdmNavigationProperty edmNavigationProperty = (EdmNavigationProperty) edmProperty; mapping = edmNavigationProperty.getMapping(); } else if(edmProperty instanceof EdmProperty) { EdmProperty property = (EdmProperty) edmProperty; mapping = property.getMapping(); } else { throw ODataJPARuntimeException.throwException(ODataJPARuntimeException.GENERAL, null); } return mapping != null ? mapping.getInternalName() : edmProperty.getName(); } }
private static String getPropertyName(final CommonExpression whereExpression) throws EdmException, ODataJPARuntimeException { EdmTyped edmProperty = ((PropertyExpression) whereExpression).getEdmProperty(); EdmMapping mapping; if (edmProperty instanceof EdmNavigationProperty) { EdmNavigationProperty edmNavigationProperty = (EdmNavigationProperty) edmProperty; mapping = edmNavigationProperty.getMapping(); } else if(edmProperty instanceof EdmProperty) { EdmProperty property = (EdmProperty) edmProperty; mapping = property.getMapping(); } else { throw ODataJPARuntimeException.throwException(ODataJPARuntimeException.GENERAL, null); } return mapping != null ? (mapping.getInternalExpression() != null? mapping.getInternalExpression() : mapping.getInternalName()) : edmProperty.getName(); }
JPAEdmMapping navPropMapping = (JPAEdmMapping) navigationProperty.getMapping();
JPAEdmMapping navPropMapping = (JPAEdmMapping) navigationProperty.getMapping();