You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2014/01/21 15:23:51 UTC
svn commit: r1560032 -
/incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
Author: mibo
Date: Tue Jan 21 14:23:51 2014
New Revision: 1560032
URL: http://svn.apache.org/r1560032
Log:
CMS commit to olingo by mibo
Modified:
incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
Modified: incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
URL: http://svn.apache.org/viewvc/incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext?rev=1560032&r1=1560031&r2=1560032&view=diff
==============================================================================
--- incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext (original)
+++ incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext Tue Jan 21 14:23:51 2014
@@ -137,12 +137,12 @@ The _Manufacturer_ consists of an `Id`,
The _Car_ consists of an `Id`, `Model`, `ProductionYear`, `Price` and a relation to its `Manufacturer`.
#### Create Java Beans for Entities
-For each of both entities first a java bean (_POJO_) is created in the package `org.apache.olingo.sample.annotation.model` which looks like:
+For each of both entities first a java bean (_POJO_) is created in the package `org.apache.olingo.sample.annotation.model` (which results in a created folder `src/main/java/org/apache/olingo/sample/annotation/model/`) which looks like:
:::java
package org.apache.olingo.sample.annotation.model;
- /** Imports */
+ /** required Imports */
public class Manufacturer {
private String id;
@@ -150,7 +150,7 @@ For each of both entities first a java b
private Calendar founded;
private List<Car> cars = new ArrayList<Car>();
- /** getter and setter */
+ /** optional getter and setter */
}
and:
@@ -158,7 +158,7 @@ and:
:::java
package org.apache.olingo.sample.annotation.model;
- /** Imports */
+ /** required Imports */
public class Car {
private String id;
@@ -167,7 +167,7 @@ and:
private Integer productionYear;
private Manufacturer manufacturer;
- /** getter and setter */
+ /** optional getter and setter */
}
#### Annotated created Java Beans
@@ -237,7 +237,7 @@ The complete resulting Entities (POJOs)
@EdmNavigationProperty
private List<Car> cars = new ArrayList<Car>();
- /** getter and setter */
+ /** optional getter and setter */
}
and
@@ -262,7 +262,7 @@ and
@EdmNavigationProperty
private Manufacturer manufacturer;
- /** getter and setter */
+ /** optional getter and setter */
}
@@ -270,12 +270,12 @@ The next step is to create the `ODataSer
### Create ODataService
The `ODataService` is created via an `ODataServiceFactory` implementation.
-For the sample a `AnnotationSampleServiceFactory` in the package `org.apache.olingo.sample.annotation.processor` is created which extends the `ODataServiceFactory`. The resulting code look like:
+For the sample a `AnnotationSampleServiceFactory` in the package `org.apache.olingo.sample.annotation.processor` (which results in a created folder `src/main/java/org/apache/olingo/sample/annotation/processor/`) is created which extends the `ODataServiceFactory`. The resulting code look like:
:::java
package org.apache.olingo.sample.annotation.processor;
- /** Imports */
+ /** required Imports */
public class AnnotationSampleServiceFactory extends ODataServiceFactory {
@Override