olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1558326 - /incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
Date Wed, 15 Jan 2014 09:48:35 GMT
Author: mibo
Date: Wed Jan 15 09:48:35 2014
New Revision: 1558326

URL: http://svn.apache.org/r1558326
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=1558326&r1=1558325&r2=1558326&view=diff
==============================================================================
--- incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
(original)
+++ incubator/olingo/site/trunk/content/doc/tutorials/AnnotationProcessorExtension.mdtext
Wed Jan 15 09:48:35 2014
@@ -45,82 +45,80 @@ In addition we need the dependency to al
 
 The resulting `pom.xml` then looks like:
 
-```
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.apache.olingo</groupId>
-  <artifactId>cars-annotations-sample</artifactId>
-  <version>1.0.0-SNAPSHOT</version>
-  <name>${project.artifactId}</name>
-
-  <packaging>war</packaging>
-
-  <properties>
-    <!-- Dependency Versions -->
-    <version.cxf>2.7.6</version.cxf>
-    <version.servlet-api>2.5</version.servlet-api>
-    <version.jaxrs-api>2.0-m10</version.jaxrs-api>
-    <version.olingo>1.1.0</version.olingo>
-  </properties>
-
-  <build>
-    <finalName>${project.artifactId}</finalName>
-    <defaultGoal>clean package</defaultGoal>
-  </build>
-
-  <dependencies>
-    <!-- Apache Olingo Library dependencies -->
-    <dependency>
-      <groupId>org.apache.olingo</groupId>
-      <artifactId>olingo-odata2-api-incubating</artifactId>
-      <version>${version.olingo}</version>
-    </dependency>
-    <dependency>
-      <artifactId>olingo-odata2-api-annotation-incubating</artifactId>
-      <groupId>org.apache.olingo</groupId>
-      <type>jar</type>
-      <version>${version.olingo}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.olingo</groupId>
-      <artifactId>olingo-odata2-core-incubating</artifactId>
-      <version>${version.olingo}</version>
-    </dependency>
-    <!-- Apache Olingo Annotation Processor Extension dependencies -->
-    <dependency>
-      <groupId>org.apache.olingo</groupId>
-      <artifactId>olingo-odata2-annotation-processor-api-incubating</artifactId>
-      <version>${version.olingo}</version>
-    </dependency>
-    <dependency>
+    <?xml version="1.0" encoding="UTF-8"?>
+    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+      <modelVersion>4.0.0</modelVersion>
+    
       <groupId>org.apache.olingo</groupId>
-      <artifactId>olingo-odata2-annotation-processor-core-incubating</artifactId>
-      <version>${version.olingo}</version>
-    </dependency>
-    <!-- Servlet/REST dependencies -->
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
-      <version>${version.servlet-api}</version>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.ws.rs</groupId>
-      <artifactId>javax.ws.rs-api</artifactId>
-      <version>${version.jaxrs-api}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.cxf</groupId>
-      <artifactId>cxf-rt-frontend-jaxrs</artifactId>
-      <version>${version.cxf}</version>
-    </dependency>
-  </dependencies>
-</project>
+      <artifactId>cars-annotations-sample</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+      <name>${project.artifactId}</name>
+    
+      <packaging>war</packaging>
+    
+      <properties>
+        <!-- Dependency Versions -->
+        <version.cxf>2.7.6</version.cxf>
+        <version.servlet-api>2.5</version.servlet-api>
+        <version.jaxrs-api>2.0-m10</version.jaxrs-api>
+        <version.olingo>1.1.0</version.olingo>
+      </properties>
+    
+      <build>
+        <finalName>${project.artifactId}</finalName>
+        <defaultGoal>clean package</defaultGoal>
+      </build>
+
+      <dependencies>
+        <!-- Apache Olingo Library dependencies -->
+        <dependency>
+          <groupId>org.apache.olingo</groupId>
+          <artifactId>olingo-odata2-api-incubating</artifactId>
+          <version>${version.olingo}</version>
+        </dependency>
+        <dependency>
+          <artifactId>olingo-odata2-api-annotation-incubating</artifactId>
+          <groupId>org.apache.olingo</groupId>
+          <type>jar</type>
+          <version>${version.olingo}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.olingo</groupId>
+          <artifactId>olingo-odata2-core-incubating</artifactId>
+          <version>${version.olingo}</version>
+        </dependency>
+        <!-- Apache Olingo Annotation Processor Extension dependencies -->
+        <dependency>
+          <groupId>org.apache.olingo</groupId>
+          <artifactId>olingo-odata2-annotation-processor-api-incubating</artifactId>
+          <version>${version.olingo}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.olingo</groupId>
+          <artifactId>olingo-odata2-annotation-processor-core-incubating</artifactId>
+          <version>${version.olingo}</version>
+        </dependency>
+        <!-- Servlet/REST dependencies -->
+        <dependency>
+          <groupId>javax.servlet</groupId>
+          <artifactId>servlet-api</artifactId>
+          <version>${version.servlet-api}</version>
+          <scope>provided</scope>
+        </dependency>
+        <dependency>
+          <groupId>javax.ws.rs</groupId>
+          <artifactId>javax.ws.rs-api</artifactId>
+          <version>${version.jaxrs-api}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.cxf</groupId>
+          <artifactId>cxf-rt-frontend-jaxrs</artifactId>
+          <version>${version.cxf}</version>
+        </dependency>
+      </dependencies>
+    </project>
 
-```
 
 ### Create Model
 
@@ -132,34 +130,35 @@ The _Car_ consists of an `Id`, `Model`, 
 #### 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:
 
-```
-package org.apache.olingo.sample.annotation.model;
+    package org.apache.olingo.sample.annotation.model;
 
-/** Imports*/
+    /** Imports*/
 
-public class Manufacturer {
-  private String id;
-  private String name;
-  private Calendar founded;
-  private List<Car> cars = new ArrayList<Car>();
+    public class Manufacturer {
+      private String id;
+      private String name;
+      private Calendar founded;
+      private List<Car> cars = new ArrayList<Car>();
   
-  /** getter and setter */
-```
+      /** getter and setter */
 
-```
-package org.apache.olingo.sample.annotation.model;
 
-/** Imports*/
 
-public class Car {
-  private String id;
-  private String model;
-  private Double price;
-  private Integer productionYear;
-  private Manufacturer manufacturer;
-  
-  /** getter and setter */
-```
+
+    package org.apache.olingo.sample.annotation.model;
+    
+    /** Imports*/
+    
+    public class Car {
+      private String id;
+      private String model;
+      private Double price;
+      private Integer productionYear;
+      private Manufacturer manufacturer;
+      
+      /** getter and setter */
+
+
 #### Annotated created Java Beans
 Now those beans have to be annotated with the annotations of the _Annotation Processor Extension_.
 



Mime
View raw message