@EdmProperty(name = "ID", nullable = false) private long id; @EdmProperty(name = "Name", nullable = false, maxLength = EDM_MAX_LENGTH) private String name;
@EdmProperty(name = "ID", nullable = false) private long id; @EdmProperty(name = "Name", nullable = false, maxLength = EDM_MAX_LENGTH) private String name;
public class ODataDemoClassification { @EdmProperty private List<String> classifications = new ArrayList<>(); @EdmProperty private String key;
/** * The Complex Type Sample List model. */ @EdmComplex(namespace = "ODataDemo") public class ComplexTypeSampleList { @EdmProperty(name = "ListProperty", nullable = true) private List<String> listProperty; public List<String> getListProperty() { return listProperty; } public ComplexTypeSampleList setListProperty(List<String> property) { this.listProperty = property; return this; } }
/** * The Abstract Complex Type Sample. */ @EdmComplex(namespace = "ODataDemo") public abstract class AbstractComplexTypeSample { @EdmProperty(name = "InheritedProperty", nullable = true) private String inheritedProperty; public String getInheritedProperty() { return inheritedProperty; } public AbstractComplexTypeSample setInheritedProperty(String newInheritedProperty) { this.inheritedProperty = newInheritedProperty; return this; } }
public class ODataDemoClassification { @EdmProperty private List<String> classifications = new ArrayList<>(); @EdmProperty private String key;
/** * The Complex Type Sample model. */ @EdmComplex(namespace = "ODataDemo") public class ComplexTypeSample extends AbstractComplexTypeSample { @EdmProperty(name = "SimpleProperty", nullable = true) private String simpleProperty; public String getSimpleProperty() { return simpleProperty; } public ComplexTypeSample setSimpleProperty(String property) { this.simpleProperty = property; return this; } }
/** * The Abstract Complex Type Sample. */ @EdmComplex(namespace = "ODataDemo") public abstract class AbstractComplexTypeSample { @EdmProperty(name = "InheritedProperty", nullable = true) private String inheritedProperty; public String getInheritedProperty() { return inheritedProperty; } public AbstractComplexTypeSample setInheritedProperty(String newInheritedProperty) { this.inheritedProperty = newInheritedProperty; return this; } }
/** * The Complex Type Sample List model. */ @EdmComplex(namespace = "ODataDemo") public class ComplexTypeSampleList { @EdmProperty(name = "ListProperty", nullable = true) private List<String> listProperty; public List<String> getListProperty() { return listProperty; } public ComplexTypeSampleList setListProperty(List<String> property) { this.listProperty = property; return this; } }
/** * The Complex Type Sample model. */ @EdmComplex(namespace = "ODataDemo") public class ComplexTypeSample extends AbstractComplexTypeSample { @EdmProperty(name = "SimpleProperty", nullable = true) private String simpleProperty; public String getSimpleProperty() { return simpleProperty; } public ComplexTypeSample setSimpleProperty(String property) { this.simpleProperty = property; return this; } }
public abstract class AbstractEntityTypeSample { @EdmProperty(name = "InheritedId", nullable = true) private String inheritedId; @EdmProperty(name = "InheritedProperty", nullable = true) private String inheritedProperty;
@EdmEntitySet("VIPCustomer") public class VIPCustomer extends Customer { @EdmProperty(nullable = false, name = "vip_id") private long vipId; @EdmProperty(nullable = false, name = "vip_address") private Address vipAddress;
@EdmEntitySet("VIPCustomer") public class VIPCustomer extends Customer { @EdmProperty(nullable = false, name = "vip_id") private long vipId; @EdmProperty(nullable = false, name = "vip_address") private Address vipAddress;
@EdmProperty(name = "ID", nullable = false) private long id; @EdmProperty(name = "Name", nullable = false, maxLength = EDM_MAX_LENGTH) private String name;
public abstract class AbstractEntityTypeSample { @EdmProperty(name = "InheritedId", nullable = true) private String inheritedId; @EdmProperty(name = "InheritedProperty", nullable = true) private String inheritedProperty;
@EdmProperty(name = "ID", nullable = false) private long id; @EdmProperty(name = "Name", nullable = false, maxLength = EDM_MAX_LENGTH) private String name;
public class ODataDemoEntity { @EdmProperty private String id; @EdmProperty private String name; @EdmProperty private List<ODataDemoProperty> properties = new ArrayList<>();
public class NamedSingleton { @EdmProperty(nullable = false) private UUID id;
/** * Entity singleton helper class. */ @EdmEntity @EdmSingleton private class EntitySingletonSample { @EdmProperty private String field; } }
/** * Entity set helper class. */ @EdmEntity @EdmEntitySet private class EntitySetSample { @EdmProperty private String field; }