You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ed...@apache.org on 2014/02/14 23:22:14 UTC

[38/51] [partial] [OLINGO-146] Java Client Lib contributed under SGA from Microsoft Open Technologies, Inc. The majority of this was written by Francesco Chicchiriccò

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/geospatial/Polygon.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/geospatial/Polygon.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/geospatial/Polygon.java
new file mode 100644
index 0000000..ff7cda4
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/geospatial/Polygon.java
@@ -0,0 +1,73 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.geospatial;
+
+import com.msopentech.odatajclient.engine.metadata.edm.EdmSimpleType;
+import java.util.List;
+
+/**
+ * Polygon.
+ */
+public class Polygon extends Geospatial {
+
+    private static final long serialVersionUID = 7797602503445391678L;
+
+    final ComposedGeospatial<Point> interior;
+
+    final ComposedGeospatial<Point> exterior;
+
+    /**
+     * Constructor.
+     *
+     * @param dimension dimension.
+     * @param interior interior points.
+     * @param exterior exterior points.
+     */
+    public Polygon(final Dimension dimension, final List<Point> interior, final List<Point> exterior) {
+        super(dimension, Type.POLYGON);
+        this.interior = new MultiPoint(dimension, interior);
+        this.exterior = new MultiPoint(dimension, exterior);
+    }
+
+    /**
+     * Gest interior points.
+     *
+     * @return interior points.
+     */
+    public ComposedGeospatial<Point> getInterior() {
+        return interior;
+    }
+
+    /**
+     * Gets exterior points.
+     *
+     * @return exterior points.I
+     */
+    public ComposedGeospatial<Point> getExterior() {
+        return exterior;
+    }
+
+    @Override
+    public EdmSimpleType getEdmSimpleType() {
+        return dimension == Dimension.GEOGRAPHY
+                ? EdmSimpleType.GeographyPolygon
+                : EdmSimpleType.GeometryPolygon;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Annotations.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Annotations.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Annotations.java
new file mode 100644
index 0000000..be5a8b5
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Annotations.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractAnnotations;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = AnnotationsDeserializer.class)
+public class Annotations extends AbstractAnnotations {
+
+    private static final long serialVersionUID = 3877353656301805410L;
+
+    private final List<TypeAnnotation> typeAnnotations = new ArrayList<TypeAnnotation>();
+
+    private final List<ValueAnnotation> valueAnnotations = new ArrayList<ValueAnnotation>();
+
+    public List<TypeAnnotation> getTypeAnnotations() {
+        return typeAnnotations;
+    }
+
+    public List<ValueAnnotation> getValueAnnotations() {
+        return valueAnnotations;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AnnotationsDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AnnotationsDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AnnotationsDeserializer.java
new file mode 100644
index 0000000..7de0619
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AnnotationsDeserializer.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import java.io.IOException;
+
+public class AnnotationsDeserializer extends AbstractEdmDeserializer<Annotations> {
+
+    @Override
+    protected Annotations doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final Annotations annotations = new Annotations();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Target".equals(jp.getCurrentName())) {
+                    annotations.setTarget(jp.nextTextValue());
+                } else if ("Qualifier".equals(jp.getCurrentName())) {
+                    annotations.setQualifier(jp.nextTextValue());
+                } else if ("typeAnnotation".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    annotations.getTypeAnnotations().add(jp.getCodec().readValue(jp, TypeAnnotation.class));
+                } else if ("ValueAnnotation".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    annotations.getValueAnnotations().add(jp.getCodec().readValue(jp, ValueAnnotation.class));
+                }
+            }
+        }
+
+        return annotations;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Association.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Association.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Association.java
new file mode 100644
index 0000000..98fc992
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Association.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = AssociationDeserializer.class)
+public class Association extends AbstractEdm {
+
+    private static final long serialVersionUID = 73763231919532482L;
+
+    private String name;
+
+    private ReferentialConstraint referentialConstraint;
+
+    private List<AssociationEnd> ends = new ArrayList<AssociationEnd>();
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(final String name) {
+        this.name = name;
+    }
+
+    public ReferentialConstraint getReferentialConstraint() {
+        return referentialConstraint;
+    }
+
+    public void setReferentialConstraint(final ReferentialConstraint referentialConstraint) {
+        this.referentialConstraint = referentialConstraint;
+    }
+
+    public List<AssociationEnd> getEnds() {
+        return ends;
+    }
+
+    public void setEnds(final List<AssociationEnd> ends) {
+        this.ends = ends;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationDeserializer.java
new file mode 100644
index 0000000..03878ea
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationDeserializer.java
@@ -0,0 +1,54 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import java.io.IOException;
+
+public class AssociationDeserializer extends AbstractEdmDeserializer<Association> {
+
+    @Override
+    protected Association doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final Association association = new Association();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Name".equals(jp.getCurrentName())) {
+                    association.setName(jp.nextTextValue());
+                } else if ("ReferentialConstraint".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    association.setReferentialConstraint(jp.getCodec().readValue(jp, ReferentialConstraint.class));
+                } else if ("End".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    association.getEnds().add(jp.getCodec().readValue(jp, AssociationEnd.class));
+                }
+            }
+        }
+
+        return association;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationEnd.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationEnd.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationEnd.java
new file mode 100644
index 0000000..6806d42
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationEnd.java
@@ -0,0 +1,73 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.v4.OnDelete;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public class AssociationEnd extends AbstractEdm {
+
+    private static final long serialVersionUID = 3305394053564979376L;
+
+    @JsonProperty(value = "Type", required = true)
+    private String type;
+
+    @JsonProperty(value = "Role")
+    private String role;
+
+    @JsonProperty(value = "Multiplicity")
+    private String multiplicity;
+
+    @JsonProperty(value = "OnDelete")
+    private OnDelete onDelete;
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(final String type) {
+        this.type = type;
+    }
+
+    public String getRole() {
+        return role;
+    }
+
+    public void setRole(final String role) {
+        this.role = role;
+    }
+
+    public String getMultiplicity() {
+        return multiplicity;
+    }
+
+    public void setMultiplicity(final String multiplicity) {
+        this.multiplicity = multiplicity;
+    }
+
+    public OnDelete getOnDelete() {
+        return onDelete;
+    }
+
+    public void setOnDelete(final OnDelete onDelete) {
+        this.onDelete = onDelete;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSet.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSet.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSet.java
new file mode 100644
index 0000000..79ac38a
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSet.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = AssociationSetDeserializer.class)
+public class AssociationSet extends AbstractEdm {
+
+    private static final long serialVersionUID = 1248430921598774799L;
+
+    private String name;
+
+    private String association;
+
+    private List<AssociationSetEnd> ends = new ArrayList<AssociationSetEnd>();
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(final String name) {
+        this.name = name;
+    }
+
+    public String getAssociation() {
+        return association;
+    }
+
+    public void setAssociation(final String association) {
+        this.association = association;
+    }
+
+    public List<AssociationSetEnd> getEnds() {
+        return ends;
+    }
+
+    public void setEnds(final List<AssociationSetEnd> ends) {
+        this.ends = ends;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetDeserializer.java
new file mode 100644
index 0000000..02fb6bc
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetDeserializer.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import java.io.IOException;
+
+public class AssociationSetDeserializer extends AbstractEdmDeserializer<AssociationSet> {
+
+    @Override
+    protected AssociationSet doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final AssociationSet associationSet = new AssociationSet();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Name".equals(jp.getCurrentName())) {
+                    associationSet.setName(jp.nextTextValue());
+                } else if ("Association".equals(jp.getCurrentName())) {
+                    associationSet.setAssociation(jp.nextTextValue());
+                } else if ("End".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    associationSet.getEnds().add(jp.getCodec().readValue(jp, AssociationSetEnd.class));
+                }
+            }
+        }
+
+        return associationSet;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetEnd.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetEnd.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetEnd.java
new file mode 100644
index 0000000..27fb80f
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/AssociationSetEnd.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public class AssociationSetEnd extends AbstractEdm {
+
+    private static final long serialVersionUID = -6238344152962217446L;
+
+    @JsonProperty("Role")
+    private String role;
+
+    @JsonProperty(value = "EntitySet", required = true)
+    private String entitySet;
+
+    public String getRole() {
+        return role;
+    }
+
+    public void setRole(final String role) {
+        this.role = role;
+    }
+
+    public String getEntitySet() {
+        return entitySet;
+    }
+
+    public void setEntitySet(final String entitySet) {
+        this.entitySet = entitySet;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ComplexType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ComplexType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ComplexType.java
new file mode 100644
index 0000000..bf728c6
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ComplexType.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractComplexType;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ComplexType extends AbstractComplexType {
+
+    private static final long serialVersionUID = -1251230308269425962L;
+
+    private final List<Property> properties = new ArrayList<Property>();
+
+    @Override
+    public List<Property> getProperties() {
+        return properties;
+    }
+
+    @Override
+    public Property getProperty(final String name) {
+        Property result = null;
+        for (Property property : getProperties()) {
+            if (name.equals(property.getName())) {
+                result = property;
+            }
+        }
+        return result;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/DataServices.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/DataServices.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/DataServices.java
new file mode 100644
index 0000000..853f911
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/DataServices.java
@@ -0,0 +1,38 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractDataServices;
+import java.util.ArrayList;
+import java.util.List;
+
+public class DataServices extends AbstractDataServices<
+        Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
+
+    private static final long serialVersionUID = 633129618050875211L;
+
+    private final List<Schema> schemas = new ArrayList<Schema>();
+
+    @Override
+    public List<Schema> getSchemas() {
+        return schemas;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Edmx.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Edmx.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Edmx.java
new file mode 100644
index 0000000..0cccf91
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Edmx.java
@@ -0,0 +1,29 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmx;
+
+public class Edmx extends AbstractEdmx<
+        DataServices, Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
+
+    private static final long serialVersionUID = -8031883176876401375L;
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityContainer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityContainer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityContainer.java
new file mode 100644
index 0000000..2c6acc2
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityContainer.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityContainer;
+import java.util.ArrayList;
+import java.util.List;
+
+public class EntityContainer extends AbstractEntityContainer<FunctionImport> {
+
+    private static final long serialVersionUID = 8934431875078180370L;
+
+    private final List<EntitySet> entitySets = new ArrayList<EntitySet>();
+
+    private final List<AssociationSet> associationSets = new ArrayList<AssociationSet>();
+
+    private final List<FunctionImport> functionImports = new ArrayList<FunctionImport>();
+
+    @Override
+    public List<EntitySet> getEntitySets() {
+        return entitySets;
+    }
+
+    @Override
+    public EntitySet getEntitySet(final String name) {
+        EntitySet result = null;
+        for (EntitySet entitySet : getEntitySets()) {
+            if (name.equals(entitySet.getName())) {
+                result = entitySet;
+            }
+        }
+        return result;
+    }
+
+    public List<AssociationSet> getAssociationSets() {
+        return associationSets;
+    }
+
+    @Override
+    public List<FunctionImport> getFunctionImports() {
+        return functionImports;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntitySet.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntitySet.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntitySet.java
new file mode 100644
index 0000000..5b2bede
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntitySet.java
@@ -0,0 +1,28 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntitySet;
+
+public class EntitySet extends AbstractEntitySet {
+
+    private static final long serialVersionUID = 5570833733884884012L;
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityType.java
new file mode 100644
index 0000000..defe5bc
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EntityType.java
@@ -0,0 +1,66 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityType;
+import java.util.ArrayList;
+import java.util.List;
+
+public class EntityType extends AbstractEntityType {
+
+    private static final long serialVersionUID = 8727765036150269547L;
+
+    private final List<Property> properties = new ArrayList<Property>();
+
+    private final List<NavigationProperty> navigationProperties = new ArrayList<NavigationProperty>();
+
+    @Override
+    public List<Property> getProperties() {
+        return properties;
+    }
+
+    @Override
+    public Property getProperty(final String name) {
+        Property result = null;
+        for (Property property : getProperties()) {
+            if (name.equals(property.getName())) {
+                result = property;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public List<NavigationProperty> getNavigationProperties() {
+        return navigationProperties;
+    }
+
+    @Override
+    public NavigationProperty getNavigationProperty(final String name) {
+        NavigationProperty result = null;
+        for (NavigationProperty property : getNavigationProperties()) {
+            if (name.equals(property.getName())) {
+                result = property;
+            }
+        }
+        return result;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EnumType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EnumType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EnumType.java
new file mode 100644
index 0000000..febf93c
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/EnumType.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEnumType;
+import java.util.ArrayList;
+import java.util.List;
+
+public class EnumType extends AbstractEnumType {
+
+    private static final long serialVersionUID = 8967396195669128419L;
+
+    private final List<Member> members = new ArrayList<Member>();
+
+    @Override
+    public List<Member> getMembers() {
+        return members;
+    }
+
+    @Override
+    public Member getMember(final String name) {
+        Member result = null;
+        for (Member member : getMembers()) {
+            if (name.equals(member.getName())) {
+                result = member;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public Member getMember(final Integer value) {
+        Member result = null;
+        for (Member member : getMembers()) {
+            if (value.equals(member.getValue())) {
+                result = member;
+            }
+        }
+        return result;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImport.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImport.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImport.java
new file mode 100644
index 0000000..90aba2c
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImport.java
@@ -0,0 +1,130 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractFunctionImport;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = FunctionImportDeserializer.class)
+public class FunctionImport extends AbstractFunctionImport {
+
+    private static final long serialVersionUID = -6214472528425935461L;
+
+    private String name;
+
+    private String returnType;
+
+    private String entitySet;
+
+    private String entitySetPath;
+
+    private boolean composable;
+
+    private boolean sideEffecting = true;
+
+    private boolean bindable;
+
+    private boolean alwaysBindable;
+
+    private String httpMethod;
+
+    private final List<Parameter> parameters = new ArrayList<Parameter>();
+
+    @Override
+    public String getName() {
+        return name;
+    }
+
+    public void setName(final String name) {
+        this.name = name;
+    }
+
+    public String getReturnType() {
+        return returnType;
+    }
+
+    public void setReturnType(final String returnType) {
+        this.returnType = returnType;
+    }
+
+    @Override
+    public String getEntitySet() {
+        return entitySet;
+    }
+
+    public void setEntitySet(final String entitySet) {
+        this.entitySet = entitySet;
+    }
+
+    public String getEntitySetPath() {
+        return entitySetPath;
+    }
+
+    public void setEntitySetPath(final String entitySetPath) {
+        this.entitySetPath = entitySetPath;
+    }
+
+    public boolean isComposable() {
+        return composable;
+    }
+
+    public void setComposable(final boolean composable) {
+        this.composable = composable;
+    }
+
+    public boolean isSideEffecting() {
+        return sideEffecting;
+    }
+
+    public void setSideEffecting(final boolean sideEffecting) {
+        this.sideEffecting = sideEffecting;
+    }
+
+    public boolean isBindable() {
+        return bindable;
+    }
+
+    public void setBindable(final boolean bindable) {
+        this.bindable = bindable;
+    }
+
+    public boolean isAlwaysBindable() {
+        return alwaysBindable;
+    }
+
+    public void setAlwaysBindable(final boolean alwaysBindable) {
+        this.alwaysBindable = alwaysBindable;
+    }
+
+    public String getHttpMethod() {
+        return httpMethod;
+    }
+
+    public void setHttpMethod(final String httpMethod) {
+        this.httpMethod = httpMethod;
+    }
+
+    public List<Parameter> getParameters() {
+        return parameters;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImportDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImportDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImportDeserializer.java
new file mode 100644
index 0000000..ee413d1
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/FunctionImportDeserializer.java
@@ -0,0 +1,68 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import java.io.IOException;
+import org.apache.commons.lang3.BooleanUtils;
+
+public class FunctionImportDeserializer extends AbstractEdmDeserializer<FunctionImport> {
+
+    @Override
+    protected FunctionImport doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final FunctionImport funcImp = new FunctionImport();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Name".equals(jp.getCurrentName())) {
+                    funcImp.setName(jp.nextTextValue());
+                } else if ("ReturnType".equals(jp.getCurrentName())) {
+                    funcImp.setReturnType(jp.nextTextValue());
+                } else if ("EntitySet".equals(jp.getCurrentName())) {
+                    funcImp.setEntitySet(jp.nextTextValue());
+                } else if ("EntitySetPath".equals(jp.getCurrentName())) {
+                    funcImp.setEntitySetPath(jp.nextTextValue());
+                } else if ("IsComposable".equals(jp.getCurrentName())) {
+                    funcImp.setComposable(BooleanUtils.toBoolean(jp.nextTextValue()));
+                } else if ("IsSideEffecting".equals(jp.getCurrentName())) {
+                    funcImp.setSideEffecting(BooleanUtils.toBoolean(jp.nextTextValue()));
+                } else if ("IsBindable".equals(jp.getCurrentName())) {
+                    funcImp.setBindable(BooleanUtils.toBoolean(jp.nextTextValue()));
+                } else if ("IsAlwaysBindable".equals(jp.getCurrentName())) {
+                    funcImp.setAlwaysBindable(BooleanUtils.toBoolean(jp.nextTextValue()));
+                } else if ("HttpMethod".equals(jp.getCurrentName())) {
+                    funcImp.setHttpMethod(jp.nextTextValue());
+                } else if ("Parameter".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    funcImp.getParameters().add(jp.getCodec().readValue(jp, Parameter.class));
+                }
+            }
+        }
+
+        return funcImp;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Member.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Member.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Member.java
new file mode 100644
index 0000000..72f9cc4
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Member.java
@@ -0,0 +1,28 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractMember;
+
+public class Member extends AbstractMember {
+
+    private static final long serialVersionUID = 6605381518349837929L;
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/NavigationProperty.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/NavigationProperty.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/NavigationProperty.java
new file mode 100644
index 0000000..d2cb599
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/NavigationProperty.java
@@ -0,0 +1,62 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractNavigationProperty;
+
+public class NavigationProperty extends AbstractNavigationProperty {
+
+    private static final long serialVersionUID = -2889417442815563307L;
+
+    @JsonProperty(value = "Relationship", required = true)
+    private String relationship;
+
+    @JsonProperty(value = "ToRole", required = true)
+    private String toRole;
+
+    @JsonProperty(value = "FromRole", required = true)
+    private String fromRole;
+
+    public String getRelationship() {
+        return relationship;
+    }
+
+    public void setRelationship(final String relationship) {
+        this.relationship = relationship;
+    }
+
+    public String getToRole() {
+        return toRole;
+    }
+
+    public void setToRole(final String toRole) {
+        this.toRole = toRole;
+    }
+
+    public String getFromRole() {
+        return fromRole;
+    }
+
+    public void setFromRole(final String fromRole) {
+        this.fromRole = fromRole;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Parameter.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Parameter.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Parameter.java
new file mode 100644
index 0000000..d1087c8
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Parameter.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractParameter;
+
+public class Parameter extends AbstractParameter {
+
+    private static final long serialVersionUID = 7596724999614891358L;
+
+    @JsonProperty("Mode")
+    private ParameterMode mode;
+
+    public ParameterMode getMode() {
+        return mode;
+    }
+
+    public void setMode(final ParameterMode mode) {
+        this.mode = mode;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ParameterMode.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ParameterMode.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ParameterMode.java
new file mode 100644
index 0000000..0eb9d1c
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ParameterMode.java
@@ -0,0 +1,28 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+public enum ParameterMode {
+
+    In,
+    Out,
+    InOut
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Property.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Property.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Property.java
new file mode 100644
index 0000000..7fb7214
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Property.java
@@ -0,0 +1,28 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractProperty;
+
+public class Property extends AbstractProperty {
+
+    private static final long serialVersionUID = 6224524803474652100L;
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/PropertyValue.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/PropertyValue.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/PropertyValue.java
new file mode 100644
index 0000000..1d36efc
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/PropertyValue.java
@@ -0,0 +1,119 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Date;
+
+public class PropertyValue extends AbstractEdm {
+
+    private static final long serialVersionUID = -6580934436491418564L;
+
+    @JsonProperty(value = "Property", required = true)
+    private String property;
+
+    @JsonProperty("Path")
+    private String path;
+
+    @JsonProperty("String")
+    private String string;
+
+    @JsonProperty("Int")
+    private BigInteger _int;
+
+    @JsonProperty("Float")
+    private Double _float;
+
+    @JsonProperty("Decimal")
+    private BigDecimal decimal;
+
+    @JsonProperty("Bool")
+    private Boolean bool;
+
+    @JsonProperty("DateTime")
+    private Date dateTime;
+
+    public String getProperty() {
+        return property;
+    }
+
+    public void setProperty(final String property) {
+        this.property = property;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(final String path) {
+        this.path = path;
+    }
+
+    public String getString() {
+        return string;
+    }
+
+    public void setString(final String string) {
+        this.string = string;
+    }
+
+    public BigInteger getInt() {
+        return _int;
+    }
+
+    public void setInt(final BigInteger _int) {
+        this._int = _int;
+    }
+
+    public Double getFloat() {
+        return _float;
+    }
+
+    public void setFloat(final Double _float) {
+        this._float = _float;
+    }
+
+    public BigDecimal getDecimal() {
+        return decimal;
+    }
+
+    public void setDecimal(final BigDecimal decimal) {
+        this.decimal = decimal;
+    }
+
+    public Boolean getBool() {
+        return bool;
+    }
+
+    public void setBool(final Boolean bool) {
+        this.bool = bool;
+    }
+
+    public Date getDateTime() {
+        return dateTime;
+    }
+
+    public void setDateTime(final Date dateTime) {
+        this.dateTime = dateTime;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraint.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraint.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraint.java
new file mode 100644
index 0000000..894f6c1
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraint.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public class ReferentialConstraint extends AbstractEdm {
+
+    private static final long serialVersionUID = 9067893732765127269L;
+
+    @JsonProperty(value = "Principal", required = true)
+    private ReferentialConstraintRole principal;
+
+    @JsonProperty(value = "Dependent", required = true)
+    private ReferentialConstraintRole dependent;
+
+    public ReferentialConstraintRole getPrincipal() {
+        return principal;
+    }
+
+    public void setPrincipal(final ReferentialConstraintRole principal) {
+        this.principal = principal;
+    }
+
+    public ReferentialConstraintRole getDependent() {
+        return dependent;
+    }
+
+    public void setDependent(final ReferentialConstraintRole dependent) {
+        this.dependent = dependent;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRole.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRole.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRole.java
new file mode 100644
index 0000000..f839fca
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRole.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import com.msopentech.odatajclient.engine.metadata.edm.PropertyRef;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = ReferentialConstraintRoleDeserializer.class)
+public class ReferentialConstraintRole extends AbstractEdm {
+
+    private static final long serialVersionUID = -3712887115248634164L;
+
+    private String role;
+
+    private List<PropertyRef> propertyRefs = new ArrayList<PropertyRef>();
+
+    public String getRole() {
+        return role;
+    }
+
+    public void setRole(final String role) {
+        this.role = role;
+    }
+
+    public List<PropertyRef> getPropertyRefs() {
+        return propertyRefs;
+    }
+
+    public void setPropertyRefs(final List<PropertyRef> propertyRefs) {
+        this.propertyRefs = propertyRefs;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRoleDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRoleDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRoleDeserializer.java
new file mode 100644
index 0000000..7a4b573
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ReferentialConstraintRoleDeserializer.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import com.msopentech.odatajclient.engine.metadata.edm.PropertyRef;
+import java.io.IOException;
+
+public class ReferentialConstraintRoleDeserializer extends AbstractEdmDeserializer<ReferentialConstraintRole> {
+
+    @Override
+    protected ReferentialConstraintRole doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final ReferentialConstraintRole refConstRole = new ReferentialConstraintRole();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Role".equals(jp.getCurrentName())) {
+                    refConstRole.setRole(jp.nextTextValue());
+                } else if ("PropertyRef".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    refConstRole.getPropertyRefs().add(jp.getCodec().readValue(jp, PropertyRef.class));
+                }
+            }
+        }
+
+        return refConstRole;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Schema.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Schema.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Schema.java
new file mode 100644
index 0000000..4bb7c68
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Schema.java
@@ -0,0 +1,137 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractSchema;
+import java.util.ArrayList;
+import java.util.List;
+
+public class Schema extends AbstractSchema<EntityContainer, EntityType, ComplexType, FunctionImport> {
+
+    private static final long serialVersionUID = 4453992249818796144L;
+
+    private final List<Annotations> annotationList = new ArrayList<Annotations>();
+
+    private final List<Association> associations = new ArrayList<Association>();
+
+    private final List<ComplexType> complexTypes = new ArrayList<ComplexType>();
+
+    private final List<EntityContainer> entityContainers = new ArrayList<EntityContainer>();
+
+    private final List<EntityType> entityTypes = new ArrayList<EntityType>();
+
+    private final List<EnumType> enumTypes = new ArrayList<EnumType>();
+
+    private final List<Using> usings = new ArrayList<Using>();
+
+    private final List<ValueTerm> valueTerms = new ArrayList<ValueTerm>();
+
+    public Association getAssociation(final String name) {
+        Association result = null;
+        for (Association association : getAssociations()) {
+            if (name.equals(association.getName())) {
+                result = association;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public List<Annotations> getAnnotationsList() {
+        return annotationList;
+    }
+
+    @Override
+    public Annotations getAnnotationsList(final String target) {
+        Annotations result = null;
+        for (Annotations annots : getAnnotationsList()) {
+            if (target.equals(annots.getTarget())) {
+                result = annots;
+            }
+        }
+        return result;
+    }
+
+    public List<Association> getAssociations() {
+        return associations;
+    }
+
+    public List<Using> getUsings() {
+        return usings;
+    }
+
+    public List<ValueTerm> getValueTerms() {
+        return valueTerms;
+    }
+
+    @Override
+    public List<EnumType> getEnumTypes() {
+        return enumTypes;
+    }
+
+    @Override
+    public EnumType getEnumType(final String name) {
+        EnumType result = null;
+        for (EnumType type : getEnumTypes()) {
+            if (name.equals(type.getName())) {
+                result = type;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public List<EntityContainer> getEntityContainers() {
+        return entityContainers;
+    }
+
+    @Override
+    public EntityContainer getDefaultEntityContainer() {
+        EntityContainer result = null;
+        for (EntityContainer container : getEntityContainers()) {
+            if (container.isDefaultEntityContainer()) {
+                result = container;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public EntityContainer getEntityContainer(final String name) {
+        EntityContainer result = null;
+        for (EntityContainer container : getEntityContainers()) {
+            if (name.equals(container.getName())) {
+                result = container;
+            }
+        }
+        return result;
+    }
+
+    @Override
+    public List<EntityType> getEntityTypes() {
+        return entityTypes;
+    }
+
+    @Override
+    public List<ComplexType> getComplexTypes() {
+        return complexTypes;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotation.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotation.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotation.java
new file mode 100644
index 0000000..f4553f3
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotation.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import java.util.ArrayList;
+import java.util.List;
+
+@JsonDeserialize(using = TypeAnnotationDeserializer.class)
+public class TypeAnnotation extends AbstractEdm {
+
+    private static final long serialVersionUID = -7585489230017331877L;
+
+    private String term;
+
+    private String qualifier;
+
+    private List<PropertyValue> propertyValues = new ArrayList<PropertyValue>();
+
+    public String getTerm() {
+        return term;
+    }
+
+    public void setTerm(final String term) {
+        this.term = term;
+    }
+
+    public String getQualifier() {
+        return qualifier;
+    }
+
+    public void setQualifier(final String qualifier) {
+        this.qualifier = qualifier;
+    }
+
+    public List<PropertyValue> getPropertyValues() {
+        return propertyValues;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotationDeserializer.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotationDeserializer.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotationDeserializer.java
new file mode 100644
index 0000000..0637164
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/TypeAnnotationDeserializer.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmDeserializer;
+import java.io.IOException;
+
+public class TypeAnnotationDeserializer extends AbstractEdmDeserializer<TypeAnnotation> {
+
+    @Override
+    protected TypeAnnotation doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
+            throws IOException, JsonProcessingException {
+
+        final TypeAnnotation typeAnnot = new TypeAnnotation();
+
+        for (; jp.getCurrentToken() != JsonToken.END_OBJECT; jp.nextToken()) {
+            final JsonToken token = jp.getCurrentToken();
+            if (token == JsonToken.FIELD_NAME) {
+                if ("Term".equals(jp.getCurrentName())) {
+                    typeAnnot.setTerm(jp.nextTextValue());
+                } else if ("Qualifier".equals(jp.getCurrentName())) {
+                    typeAnnot.setQualifier(jp.nextTextValue());
+                } else if ("PropertyValue".equals(jp.getCurrentName())) {
+                    jp.nextToken();
+                    typeAnnot.getPropertyValues().add(jp.getCodec().readValue(jp, PropertyValue.class));
+                }
+            }
+        }
+
+        return typeAnnot;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Using.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Using.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Using.java
new file mode 100644
index 0000000..5ac37c7
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/Using.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public class Using extends AbstractEdm {
+
+    private static final long serialVersionUID = 2086957510154443445L;
+
+    @JsonProperty(value = "Namespace", required = true)
+    private String namespace;
+
+    @JsonProperty("Alias")
+    private String alias;
+
+    public String getNamespace() {
+        return namespace;
+    }
+
+    public void setNamespace(final String namespace) {
+        this.namespace = namespace;
+    }
+
+    public String getAlias() {
+        return alias;
+    }
+
+    public void setAlias(final String alias) {
+        this.alias = alias;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueAnnotation.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueAnnotation.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueAnnotation.java
new file mode 100644
index 0000000..88205ff
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueAnnotation.java
@@ -0,0 +1,130 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Date;
+
+public class ValueAnnotation extends AbstractEdm {
+
+    private static final long serialVersionUID = -1826414005417952278L;
+
+    @JsonProperty(value = "Term", required = true)
+    private String term;
+
+    @JsonProperty("Qualifier")
+    private String qualifier;
+
+    @JsonProperty("Path")
+    private String path;
+
+    @JsonProperty("String")
+    private String string;
+
+    @JsonProperty("Int")
+    private BigInteger _int;
+
+    @JsonProperty("Float")
+    private Double _float;
+
+    @JsonProperty("Decimal")
+    private BigDecimal decimal;
+
+    @JsonProperty("Bool")
+    private Boolean bool;
+
+    @JsonProperty("DateTime")
+    private Date dateTime;
+
+    public String getTerm() {
+        return term;
+    }
+
+    public void setTerm(final String term) {
+        this.term = term;
+    }
+
+    public String getQualifier() {
+        return qualifier;
+    }
+
+    public void setQualifier(final String qualifier) {
+        this.qualifier = qualifier;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(final String path) {
+        this.path = path;
+    }
+
+    public String getString() {
+        return string;
+    }
+
+    public void setString(final String string) {
+        this.string = string;
+    }
+
+    public BigInteger getInt() {
+        return _int;
+    }
+
+    public void setInt(final BigInteger _int) {
+        this._int = _int;
+    }
+
+    public Double getFloat() {
+        return _float;
+    }
+
+    public void setFloat(final Double _float) {
+        this._float = _float;
+    }
+
+    public BigDecimal getDecimal() {
+        return decimal;
+    }
+
+    public void setDecimal(final BigDecimal decimal) {
+        this.decimal = decimal;
+    }
+
+    public Boolean getBool() {
+        return bool;
+    }
+
+    public void setBool(final Boolean bool) {
+        this.bool = bool;
+    }
+
+    public Date getDateTime() {
+        return dateTime == null ? null : new Date(dateTime.getTime());
+    }
+
+    public void setDateTime(final Date dateTime) {
+        this.dateTime = dateTime == null ? null : new Date(dateTime.getTime());
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueTerm.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueTerm.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueTerm.java
new file mode 100644
index 0000000..1df366e
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v3/ValueTerm.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v3;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public class ValueTerm extends AbstractEdm {
+
+    private static final long serialVersionUID = 6149019886137610604L;
+
+    @JsonProperty(value = "Name", required = true)
+    private String name;
+
+    @JsonProperty(value = "Type", required = true)
+    private String type;
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(final String name) {
+        this.name = name;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(final String type) {
+        this.type = type;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata4/blob/7baecb90/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v4/AbstractAnnotatedEdm.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v4/AbstractAnnotatedEdm.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v4/AbstractAnnotatedEdm.java
new file mode 100644
index 0000000..b0a23c0
--- /dev/null
+++ b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/v4/AbstractAnnotatedEdm.java
@@ -0,0 +1,42 @@
+/**
+ * Copyright © Microsoft Open Technologies, Inc.
+ *
+ * All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
+ * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
+ * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
+ *
+ * See the Apache License, Version 2.0 for the specific language
+ * governing permissions and limitations under the License.
+ */
+package com.msopentech.odatajclient.engine.metadata.edm.v4;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdm;
+
+public abstract class AbstractAnnotatedEdm extends AbstractEdm implements AnnotatedEdm {
+
+    private static final long serialVersionUID = -8859729466090997718L;
+
+    @JsonProperty("Annotation")
+    private Annotation annotation;
+
+    @Override
+    public Annotation getAnnotation() {
+        return annotation;
+    }
+
+    @Override
+    public void setAnnotation(final Annotation annotation) {
+        this.annotation = annotation;
+    }
+
+}