# Package org.apache.olingo.odata2.jpa.processor.api

OData JPA Processor API Library The library provides a way for the developers to create an OData Service from a Java Persistence Model.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  ODataJPAContext | This class does the compilation of context objects required for OData JPA Runtime.
  ODataJPAResponseBuilder | The interface provides methods for building an OData response from a JPA Entity.
  ODataJPATransaction | Interface for JPA-Transaction abstraction.
  OnJPAWriteContent | The interface is a call back interface that enables OData JPA Processor to get JPA provider specific implementation of java.sql.Blob and java.sql.Clob instances.

- Class Summary
  Class | Description
  --- | ---
  ODataJPADefaultProcessor |
  ODataJPAProcessor | Extend this class and implement an OData JPA processor if the default behavior of OData JPA Processor library has to be overwritten.
  ODataJPAQueryExtensionEntityListener | Extend this class to build JPA Query object for a given OData request.
  ODataJPAServiceFactory | Extend this factory class and create own instance of `ODataService` that transforms Java Persistence Models into an OData Service.
  ODataJPATombstoneContext | This class provides a thread safe container for accessing Tombstone objects
  ODataJPATombstoneEntityListener | Extend this class and implement a JPA Entity Listener as specified in JSR 317 Java Persistence 2.0.

## Package org.apache.olingo.odata2.jpa.processor.api Description

### OData JPA Processor API Library

The library provides a way for the developers to create an OData Service from a Java Persistence Model. The library supports Java Persistence 2.0 and is dependent on OData library. To create an OData service from JPA models

1. extend the service factory class `ODataJPAServiceFactory` and implement the methods
2. define a JAX-RS servlet in web.xml and configure the service factory as servlet init parameter.

   See Also:`ODataJPAServiceFactory`

Copyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.