http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Person.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Person.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Person.java index 448ab01..c81d527 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Person.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Person.java @@ -1,107 +1,99 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; -//CHECKSTYLE:ON (Maven checkstyle) +// CHECKSTYLE:ON (Maven checkstyle) @org.apache.olingo.ext.proxy.api.annotations.Namespace("ODataDemo") @org.apache.olingo.ext.proxy.api.annotations.EntityType(name = "Person", - openType = false, - hasStream = false, - isAbstract = false) -public interface Person - extends org.apache.olingo.ext.proxy.api.Annotatable, - org.apache.olingo.ext.proxy.api.EntityType<Person>, org.apache.olingo.ext.proxy.api.StructuredQuery<Person> { - - - - - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getID(); - - void setID(java.lang.Integer _iD); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getName(); - - void setName(java.lang.String _name); - - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "PersonDetail", - type = "ODataDemo.PersonDetail", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "PersonDetails", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail getPersonDetail(); - - void setPersonDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail _personDetail); - - - - Operations operations(); - - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - //No additional methods needed for now. - } - Annotations annotations(); - - interface Annotations { - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ID", - type = "Edm.Int32") - org.apache.olingo.ext.proxy.api.Annotatable getIDAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Name", - type = "Edm.String") - org.apache.olingo.ext.proxy.api.Annotatable getNameAnnotations(); - - - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "PersonDetail", - type = "ODataDemo.PersonDetail") - org.apache.olingo.ext.proxy.api.Annotatable getPersonDetailAnnotations(); - } + openType = false, + hasStream = false, + isAbstract = false) +public interface Person + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<Person>, org.apache.olingo.ext.proxy.api.StructuredQuery<Person> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getID(); + + void setID(java.lang.Integer _iD); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); + + void setName(java.lang.String _name); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "PersonDetail", + type = "ODataDemo.PersonDetail", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "PersonDetails", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail getPersonDetail(); + + void setPersonDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail _personDetail); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Name", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getNameAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "PersonDetail", + type = "ODataDemo.PersonDetail") + org.apache.olingo.ext.proxy.api.Annotatable getPersonDetailAnnotations(); + } }
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollection.java index 7d4e6c0..064af50 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollection.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollection.java @@ -1,38 +1,40 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) -import org.apache.olingo.ext.proxy.api.AbstractTerm; +// CHECKSTYLE:OFF (Maven checkstyle) import java.util.Collection; -//CHECKSTYLE:ON (Maven checkstyle) +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractTerm; -public interface PersonCollection extends +public interface PersonCollection + extends org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection>, - org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection> { +org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection> { + + Operations operations(); - Operations operations(); + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - //No additional methods needed for now. - } Object getAnnotation(Class<? extends AbstractTerm> term); Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollectionComposableInvoker.java index e2c90fc..49f8c08 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollectionComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonCollectionComposableInvoker.java @@ -1,27 +1,27 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) +// CHECKSTYLE:OFF (Maven checkstyle) - -public interface PersonCollectionComposableInvoker extends +public interface PersonCollectionComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonCollection.Operations> { @Override http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonComposableInvoker.java index 4d7507b..7255bb1 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonComposableInvoker.java @@ -1,29 +1,31 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; -//CHECKSTYLE:ON (Maven checkstyle) -public interface PersonComposableInvoker - extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Person, Person.Operations> - { +// CHECKSTYLE:ON (Maven checkstyle) + +public interface PersonComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Person, Person.Operations> +{ @Override PersonComposableInvoker select(String... select); @@ -31,51 +33,45 @@ public interface PersonComposableInvoker @Override PersonComposableInvoker expand(String... expand); - + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getID(); - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getID(); + void setID(java.lang.Integer _iD); - void setID(java.lang.Integer _iD); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getName(); + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); - void setName(java.lang.String _name); - + void setName(java.lang.String _name); - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "PersonDetail", - type = "ODataDemo.PersonDetail", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "PersonDetails", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail getPersonDetail(); + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "PersonDetail", + type = "ODataDemo.PersonDetail", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "PersonDetails", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail getPersonDetail(); - void setPersonDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail _personDetail); - + void setPersonDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail _personDetail); } http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetail.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetail.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetail.java index f3aec8c..5918747 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetail.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetail.java @@ -1,187 +1,176 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; -//CHECKSTYLE:ON (Maven checkstyle) +// CHECKSTYLE:ON (Maven checkstyle) @org.apache.olingo.ext.proxy.api.annotations.Namespace("ODataDemo") @org.apache.olingo.ext.proxy.api.annotations.EntityType(name = "PersonDetail", - openType = false, - hasStream = false, - isAbstract = false) -public interface PersonDetail - extends org.apache.olingo.ext.proxy.api.Annotatable, - org.apache.olingo.ext.proxy.api.EntityType<PersonDetail>, org.apache.olingo.ext.proxy.api.StructuredQuery<PersonDetail> { - - - - - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PersonID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getPersonID(); - - void setPersonID(java.lang.Integer _personID); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Age", - type = "Edm.Byte", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Short getAge(); - - void setAge(java.lang.Short _age); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Gender", - type = "Edm.Boolean", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Boolean getGender(); - - void setGender(java.lang.Boolean _gender); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Phone", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getPhone(); - - void setPhone(java.lang.String _phone); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", - type = "ODataDemo.Address", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address getAddress(); - - void setAddress(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address _address); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Photo", - type = "Edm.Stream", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - org.apache.olingo.ext.proxy.api.EdmStreamValue getPhoto(); - - void setPhoto(org.apache.olingo.ext.proxy.api.EdmStreamValue _photo); - - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Person", - type = "ODataDemo.Person", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Persons", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person getPerson(); - - void setPerson(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person _person); - - - - Operations operations(); - - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - //No additional methods needed for now. - } - Annotations annotations(); - - interface Annotations { - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "PersonID", - type = "Edm.Int32") - org.apache.olingo.ext.proxy.api.Annotatable getPersonIDAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Age", - type = "Edm.Byte") - org.apache.olingo.ext.proxy.api.Annotatable getAgeAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Gender", - type = "Edm.Boolean") - org.apache.olingo.ext.proxy.api.Annotatable getGenderAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Phone", - type = "Edm.String") - org.apache.olingo.ext.proxy.api.Annotatable getPhoneAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Address", - type = "ODataDemo.Address") - org.apache.olingo.ext.proxy.api.Annotatable getAddressAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Photo", - type = "Edm.Stream") - org.apache.olingo.ext.proxy.api.Annotatable getPhotoAnnotations(); - - - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Person", - type = "ODataDemo.Person") - org.apache.olingo.ext.proxy.api.Annotatable getPersonAnnotations(); - } + openType = false, + hasStream = false, + isAbstract = false) +public interface PersonDetail + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<PersonDetail>, + org.apache.olingo.ext.proxy.api.StructuredQuery<PersonDetail> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PersonID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getPersonID(); + + void setPersonID(java.lang.Integer _personID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Age", + type = "Edm.Byte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getAge(); + + void setAge(java.lang.Short _age); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Gender", + type = "Edm.Boolean", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Boolean getGender(); + + void setGender(java.lang.Boolean _gender); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Phone", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPhone(); + + void setPhone(java.lang.String _phone); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", + type = "ODataDemo.Address", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address getAddress(); + + void setAddress(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address _address); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Photo", + type = "Edm.Stream", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + org.apache.olingo.ext.proxy.api.EdmStreamValue getPhoto(); + + void setPhoto(org.apache.olingo.ext.proxy.api.EdmStreamValue _photo); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Person", + type = "ODataDemo.Person", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Persons", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person getPerson(); + + void setPerson(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person _person); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "PersonID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getPersonIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Age", + type = "Edm.Byte") + org.apache.olingo.ext.proxy.api.Annotatable getAgeAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Gender", + type = "Edm.Boolean") + org.apache.olingo.ext.proxy.api.Annotatable getGenderAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Phone", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getPhoneAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Address", + type = "ODataDemo.Address") + org.apache.olingo.ext.proxy.api.Annotatable getAddressAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Photo", + type = "Edm.Stream") + org.apache.olingo.ext.proxy.api.Annotatable getPhotoAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Person", + type = "ODataDemo.Person") + org.apache.olingo.ext.proxy.api.Annotatable getPersonAnnotations(); + } } http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollection.java index 125176e..d672ffc 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollection.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollection.java @@ -1,38 +1,40 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) -import org.apache.olingo.ext.proxy.api.AbstractTerm; +// CHECKSTYLE:OFF (Maven checkstyle) import java.util.Collection; -//CHECKSTYLE:ON (Maven checkstyle) +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractTerm; -public interface PersonDetailCollection extends +public interface PersonDetailCollection + extends org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection>, - org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection> { +org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetail, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection> { + + Operations operations(); - Operations operations(); + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - //No additional methods needed for now. - } Object getAnnotation(Class<? extends AbstractTerm> term); Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollectionComposableInvoker.java index d7da4ad..e7d62d3 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollectionComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailCollectionComposableInvoker.java @@ -1,27 +1,27 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) +// CHECKSTYLE:OFF (Maven checkstyle) - -public interface PersonDetailCollectionComposableInvoker extends +public interface PersonDetailCollectionComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.PersonDetailCollection.Operations> { @Override http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailComposableInvoker.java index caafc2b..2d54c16 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/PersonDetailComposableInvoker.java @@ -1,29 +1,31 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; -//CHECKSTYLE:ON (Maven checkstyle) -public interface PersonDetailComposableInvoker - extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<PersonDetail, PersonDetail.Operations> - { +// CHECKSTYLE:ON (Maven checkstyle) + +public interface PersonDetailComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<PersonDetail, PersonDetail.Operations> +{ @Override PersonDetailComposableInvoker select(String... select); @@ -31,115 +33,105 @@ public interface PersonDetailComposableInvoker @Override PersonDetailComposableInvoker expand(String... expand); - - - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PersonID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getPersonID(); - - void setPersonID(java.lang.Integer _personID); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Age", - type = "Edm.Byte", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Short getAge(); - - void setAge(java.lang.Short _age); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Gender", - type = "Edm.Boolean", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Boolean getGender(); - - void setGender(java.lang.Boolean _gender); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Phone", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getPhone(); - - void setPhone(java.lang.String _phone); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", - type = "ODataDemo.Address", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address getAddress(); - - void setAddress(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address _address); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Photo", - type = "Edm.Stream", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - org.apache.olingo.ext.proxy.api.EdmStreamValue getPhoto(); - - void setPhoto(org.apache.olingo.ext.proxy.api.EdmStreamValue _photo); - - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Person", - type = "ODataDemo.Person", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Persons", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person getPerson(); - - void setPerson(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person _person); - + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PersonID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getPersonID(); + + void setPersonID(java.lang.Integer _personID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Age", + type = "Edm.Byte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getAge(); + + void setAge(java.lang.Short _age); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Gender", + type = "Edm.Boolean", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Boolean getGender(); + + void setGender(java.lang.Boolean _gender); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Phone", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPhone(); + + void setPhone(java.lang.String _phone); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", + type = "ODataDemo.Address", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address getAddress(); + + void setAddress(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Address _address); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Photo", + type = "Edm.Stream", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + org.apache.olingo.ext.proxy.api.EdmStreamValue getPhoto(); + + void setPhoto(org.apache.olingo.ext.proxy.api.EdmStreamValue _photo); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Person", + type = "ODataDemo.Person", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Persons", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person getPerson(); + + void setPerson(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Person _person); } http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Product.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Product.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Product.java index dbf9a18..cb3ff03 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Product.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/Product.java @@ -1,245 +1,231 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.OperationType; +// CHECKSTYLE:ON (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; import org.apache.olingo.ext.proxy.api.annotations.Parameter; -import org.apache.olingo.ext.proxy.api.OperationType; -//CHECKSTYLE:ON (Maven checkstyle) - @org.apache.olingo.ext.proxy.api.annotations.Namespace("ODataDemo") @org.apache.olingo.ext.proxy.api.annotations.EntityType(name = "Product", - openType = false, - hasStream = false, - isAbstract = false) -public interface Product - extends org.apache.olingo.ext.proxy.api.Annotatable, - org.apache.olingo.ext.proxy.api.EntityType<Product>, org.apache.olingo.ext.proxy.api.StructuredQuery<Product> { - - - - - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getID(); - - void setID(java.lang.Integer _iD); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getName(); - - void setName(java.lang.String _name); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Description", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getDescription(); - - void setDescription(java.lang.String _description); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReleaseDate", - type = "Edm.DateTimeOffset", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.sql.Timestamp getReleaseDate(); - - void setReleaseDate(java.sql.Timestamp _releaseDate); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "DiscontinuedDate", - type = "Edm.DateTimeOffset", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.sql.Timestamp getDiscontinuedDate(); - - void setDiscontinuedDate(java.sql.Timestamp _discontinuedDate); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Rating", - type = "Edm.Int16", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Short getRating(); - - void setRating(java.lang.Short _rating); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Price", - type = "Edm.Double", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Double getPrice(); - - void setPrice(java.lang.Double _price); - - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Categories", - type = "ODataDemo.Category", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Categories", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection getCategories(); - - void setCategories(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection _categories); - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Supplier", - type = "ODataDemo.Supplier", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Suppliers", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier getSupplier(); - - void setSupplier(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier _supplier); - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "ProductDetail", - type = "ODataDemo.ProductDetail", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "ProductDetails", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail getProductDetail(); - - void setProductDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail _productDetail); - - - - Operations operations(); - - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - - - @org.apache.olingo.ext.proxy.api.annotations.Operation(name = "Discount", - type = OperationType.ACTION, - referenceType = java.lang.Double.class, returnType = "Edm.Double") - org.apache.olingo.ext.proxy.api.Invoker<java.lang.Double> discount( - @Parameter(name = "discountPercentage", type = "Edm.Int32", nullable = false) java.lang.Integer discountPercentage - ); - - } - Annotations annotations(); - - interface Annotations { - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ID", - type = "Edm.Int32") - org.apache.olingo.ext.proxy.api.Annotatable getIDAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Name", - type = "Edm.String") - org.apache.olingo.ext.proxy.api.Annotatable getNameAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Description", - type = "Edm.String") - org.apache.olingo.ext.proxy.api.Annotatable getDescriptionAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ReleaseDate", - type = "Edm.DateTimeOffset") - org.apache.olingo.ext.proxy.api.Annotatable getReleaseDateAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "DiscontinuedDate", - type = "Edm.DateTimeOffset") - org.apache.olingo.ext.proxy.api.Annotatable getDiscontinuedDateAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Rating", - type = "Edm.Int16") - org.apache.olingo.ext.proxy.api.Annotatable getRatingAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Price", - type = "Edm.Double") - org.apache.olingo.ext.proxy.api.Annotatable getPriceAnnotations(); - - - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Categories", - type = "ODataDemo.Category") - org.apache.olingo.ext.proxy.api.Annotatable getCategoriesAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Supplier", - type = "ODataDemo.Supplier") - org.apache.olingo.ext.proxy.api.Annotatable getSupplierAnnotations(); - - @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "ProductDetail", - type = "ODataDemo.ProductDetail") - org.apache.olingo.ext.proxy.api.Annotatable getProductDetailAnnotations(); - } + openType = false, + hasStream = false, + isAbstract = false) +public interface Product + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<Product>, org.apache.olingo.ext.proxy.api.StructuredQuery<Product> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getID(); + + void setID(java.lang.Integer _iD); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); + + void setName(java.lang.String _name); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Description", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getDescription(); + + void setDescription(java.lang.String _description); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReleaseDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getReleaseDate(); + + void setReleaseDate(java.sql.Timestamp _releaseDate); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "DiscontinuedDate", + type = "Edm.DateTimeOffset", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getDiscontinuedDate(); + + void setDiscontinuedDate(java.sql.Timestamp _discontinuedDate); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Rating", + type = "Edm.Int16", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getRating(); + + void setRating(java.lang.Short _rating); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Price", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getPrice(); + + void setPrice(java.lang.Double _price); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Categories", + type = "ODataDemo.Category", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Categories", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection getCategories(); + + void setCategories(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection _categories); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Supplier", + type = "ODataDemo.Supplier", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Suppliers", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier getSupplier(); + + void setSupplier(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier _supplier); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "ProductDetail", + type = "ODataDemo.ProductDetail", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "ProductDetails", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail getProductDetail(); + + void setProductDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail _productDetail); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + + @org.apache.olingo.ext.proxy.api.annotations.Operation(name = "Discount", + type = OperationType.ACTION, + referenceType = java.lang.Double.class, returnType = "Edm.Double") + org.apache.olingo.ext.proxy.api.Invoker<java.lang.Double> + discount( + @Parameter(name = "discountPercentage", type = "Edm.Int32", nullable = false) java.lang.Integer discountPercentage + ); + + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Name", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getNameAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Description", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getDescriptionAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ReleaseDate", + type = "Edm.DateTimeOffset") + org.apache.olingo.ext.proxy.api.Annotatable getReleaseDateAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "DiscontinuedDate", + type = "Edm.DateTimeOffset") + org.apache.olingo.ext.proxy.api.Annotatable getDiscontinuedDateAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Rating", + type = "Edm.Int16") + org.apache.olingo.ext.proxy.api.Annotatable getRatingAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Price", + type = "Edm.Double") + org.apache.olingo.ext.proxy.api.Annotatable getPriceAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Categories", + type = "ODataDemo.Category") + org.apache.olingo.ext.proxy.api.Annotatable getCategoriesAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Supplier", + type = "ODataDemo.Supplier") + org.apache.olingo.ext.proxy.api.Annotatable getSupplierAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "ProductDetail", + type = "ODataDemo.ProductDetail") + org.apache.olingo.ext.proxy.api.Annotatable getProductDetailAnnotations(); + } } http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollection.java index ce81134..b9e6bb4 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollection.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollection.java @@ -1,38 +1,40 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) -import org.apache.olingo.ext.proxy.api.AbstractTerm; +// CHECKSTYLE:OFF (Maven checkstyle) import java.util.Collection; -//CHECKSTYLE:ON (Maven checkstyle) +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractTerm; -public interface ProductCollection extends +public interface ProductCollection + extends org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection>, - org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Product, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection> { +org.apache.olingo.ext.proxy.api.EntityCollection<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Product, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection> { + + Operations operations(); - Operations operations(); + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } - interface Operations extends org.apache.olingo.ext.proxy.api.Operations{ - //No additional methods needed for now. - } Object getAnnotation(Class<? extends AbstractTerm> term); Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollectionComposableInvoker.java index c226523..3d6bb61 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollectionComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductCollectionComposableInvoker.java @@ -1,27 +1,27 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) +// CHECKSTYLE:OFF (Maven checkstyle) - -public interface ProductCollectionComposableInvoker extends +public interface ProductCollectionComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection, org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductCollection.Operations> { @Override http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d1507449/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductComposableInvoker.java index edf51ff..9968948 100644 --- a/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductComposableInvoker.java +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/v4/demo/odatademo/types/ProductComposableInvoker.java @@ -1,29 +1,31 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * regarding copyright ownership. The ASF licenses this file * to you 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 - * + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.fit.proxy.v4.demo.odatademo.types; -//CHECKSTYLE:OFF (Maven checkstyle) + +// CHECKSTYLE:OFF (Maven checkstyle) import org.apache.olingo.ext.proxy.api.annotations.Key; -//CHECKSTYLE:ON (Maven checkstyle) -public interface ProductComposableInvoker - extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Product, Product.Operations> - { +// CHECKSTYLE:ON (Maven checkstyle) + +public interface ProductComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Product, Product.Operations> +{ @Override ProductComposableInvoker select(String... select); @@ -31,151 +33,140 @@ public interface ProductComposableInvoker @Override ProductComposableInvoker expand(String... expand); - - - @Key - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", - type = "Edm.Int32", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Integer getID(); - - void setID(java.lang.Integer _iD); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getName(); - - void setName(java.lang.String _name); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Description", - type = "Edm.String", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.String getDescription(); - - void setDescription(java.lang.String _description); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReleaseDate", - type = "Edm.DateTimeOffset", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.sql.Timestamp getReleaseDate(); - - void setReleaseDate(java.sql.Timestamp _releaseDate); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "DiscontinuedDate", - type = "Edm.DateTimeOffset", - nullable = true, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.sql.Timestamp getDiscontinuedDate(); - - void setDiscontinuedDate(java.sql.Timestamp _discontinuedDate); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Rating", - type = "Edm.Int16", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Short getRating(); - - void setRating(java.lang.Short _rating); - - - @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Price", - type = "Edm.Double", - nullable = false, - defaultValue = "", - maxLenght = Integer.MAX_VALUE, - fixedLenght = false, - precision = 0, - scale = 0, - unicode = true, - collation = "", - srid = "") - java.lang.Double getPrice(); - - void setPrice(java.lang.Double _price); - - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Categories", - type = "ODataDemo.Category", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Categories", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection getCategories(); - - void setCategories(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection _categories); - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Supplier", - type = "ODataDemo.Supplier", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "Suppliers", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier getSupplier(); - - void setSupplier(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier _supplier); - - @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "ProductDetail", - type = "ODataDemo.ProductDetail", - targetSchema = "ODataDemo", - targetContainer = "DemoService", - targetEntitySet = "ProductDetails", - containsTarget = false) - org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail getProductDetail(); - - void setProductDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail _productDetail); - + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getID(); + + void setID(java.lang.Integer _iD); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); + + void setName(java.lang.String _name); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Description", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getDescription(); + + void setDescription(java.lang.String _description); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReleaseDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getReleaseDate(); + + void setReleaseDate(java.sql.Timestamp _releaseDate); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "DiscontinuedDate", + type = "Edm.DateTimeOffset", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getDiscontinuedDate(); + + void setDiscontinuedDate(java.sql.Timestamp _discontinuedDate); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Rating", + type = "Edm.Int16", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getRating(); + + void setRating(java.lang.Short _rating); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Price", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getPrice(); + + void setPrice(java.lang.Double _price); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Categories", + type = "ODataDemo.Category", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Categories", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection getCategories(); + + void setCategories(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.CategoryCollection _categories); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Supplier", + type = "ODataDemo.Supplier", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "Suppliers", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier getSupplier(); + + void setSupplier(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.Supplier _supplier); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "ProductDetail", + type = "ODataDemo.ProductDetail", + targetSchema = "ODataDemo", + targetContainer = "DemoService", + targetEntitySet = "ProductDetails", + containsTarget = false) + org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail getProductDetail(); + + void setProductDetail(org.apache.olingo.fit.proxy.v4.demo.odatademo.types.ProductDetail _productDetail); }
