@Override public JPAEntityType getEntity(final EdmType edmType) throws ODataJPAModelException { final IntermediateSchema schema = schemaListInternalKey.get(edmType.getNamespace()); if (schema != null) return schema.getEntityType(edmType.getName()); return null; }
@Override public boolean compatibleTo(final EdmType targetType) { EdmStructuredType sourceType = this; if (targetType == null) { throw new EdmException("Target type must not be null"); } while (!sourceType.getName().equals(targetType.getName()) || !sourceType.getNamespace().equals(targetType.getNamespace())) { sourceType = sourceType.getBaseType(); if (sourceType == null) { return false; } } return true; }
@Override public boolean compatibleTo(final EdmType targetType) { EdmStructuredType sourceType = this; if (targetType == null) { throw new EdmException("Target type must not be null"); } while (!sourceType.getName().equals(targetType.getName()) || !sourceType.getNamespace().equals(targetType.getNamespace())) { sourceType = sourceType.getBaseType(); if (sourceType == null) { return false; } } return true; }