Dear Wiki user, You have subscribed to a wiki page or wiki category on "Olingo Wiki" for change notification.
The "Documentation/AnnotationProcessor" page has been changed by MichaelBolz: https://wiki.apache.org/Olingo/Documentation/AnnotationProcessor?action=diff&rev1=5&rev2=6 + <<TableOfContents(2)>> + = General idea = To fill the gap between a EDM definition with the API with full implementation of ODataSingleProcessor and the use of a generated EDM with the JPA Processor and JPA Annotations we created a PoC with Java Annotation to do a EDM definition with a generic AnnotationProcessor and to provide an option for simplified data access (read/write). @@ -73, +75 @@ == Class diagram for Data Access == For a simplified data access we provide a {{{ListsProcessor}}} (an extension of the {{{ODataSingleProcessor}}}) which uses a {{{ListsDataSource}}} for data persistence and {{{ValueAccess}}} for access of the properties of the data objects. - An architecture architecture overview is shown [here|^ArchitectureOverview.svg] and below: + An architecture architecture overview is shown here: [[attachment:ArchitectureOverview.svg]]. - !ArchitectureOverview.png|align=left,thumbnail,border=1! - - An overview about involved classes is shown in this [class diagram|^ClassDiagram.svg]. + An overview about involved classes is shown in this class diagram: [[attachment:ClassDiagram.svg]]. - In addition to the here shown Java code more documentation can be found in the [Javadoc of "odata2-api-annotation"|^api-annotation-apidocs.zip] and [Javadoc of "odata2-annotation-processor-api"|^annotation-proc-api-apidocs.zip]. + In addition to the here shown Java code more documentation can be found in the Javadoc of "odata2-api-annotation": [[attachment:api-annotation-apidocs.zip]] and Javadoc of "odata2-annotation-processor-api": [[attachment:annotation-proc-api-apidocs.zip]]. == Entry points for Annotation Service == @@ -306, +306 @@ } }}} - == POC realization == + = POC realization = - === Edm Provider and Json Processor for annotated model === + == Edm Provider and Json Processor for annotated model == The generic {{{Edm Provider}}} and {{{Json Processor}}} for an annotated model can be found in the {{{Apache Olingo}}} project within sub module {{{olingo-odata2-annotation-processor-core}}} in package {{{org.apache.olingo.odata2.annotation.processor.core}}} and below. For the {{{Edm Provider}}} the entry class is {{{org.apache.olingo.odata2.annotation.processor.core.edm.AnnotationEdmProvider}}} and for the {{{Json Processor}}} it is {{{org.apache.olingo.odata2.core.annotation.processor.AnnotationProcessor}}}. - === Generic data access (via ListsProcessor, ValueAccess, GenericDs) === + == Generic data access (via ListsProcessor, ValueAccess, GenericDs) == ==== Code samples ==== @@ -728, +728 @@ } }}} - == Sample project via Maven Archetype == + = Sample project via Maven Archetype = With release of ''Apache Olingo 1.1.0'' a Maven Archetype will be available to generate a sample project with a model and a {{{ODataServiceFactory}}} implementation which uses the {{{AnnotationServiceFactory}}} for creation of the {{{ODataService}}} with annotation support. To generate this sample project run maven with: @@ -748, +748 @@ Additionally an eclipse project can be created with running {{{mvn eclipse:eclipse}}} within the project. - == Basic tutorial == + = Basic tutorial = As basic tutorial the current recommendation is to take a look into the {{{Apache Olingo}}} project in the sub module {{{olingo-odata2-edm-annotation-webref}}} in package {{{org.apache.olingo.odata2.ref.annotation}}} and below. In the package {{{org.apache.olingo.odata2.ref.annotation.model}}} and below is the ''model'' defined and in package {{{org.apache.olingo.odata2.ref.annotation.processor}}} and below is the ''service factory''.
