Getting Started - Tirasa/OpenJPA-Azure GitHub Wiki
In order to use the library providing integration between Apache OpenJPA and Windows Azure SQL Database federations, you need to perform the following steps.
- Add
openjpa-azure
library to class path by either downloading the latest JAR file version from the central Maven repository or adding the following dependency to your POM
<dependency>
<groupId>net.tirasa.openjpa-azure</groupId>
<artifactId>openjpa-azure</artifactId>
<version><!-- latest version available from the central Maven repository --></version>
</dependency>
- Configure your project by providing the following specific OpenJPA configuration parameters
<property name="openjpa.BrokerFactory" value="azure"/>
<property name="openjpa.sqlazure.Federations" value="[federation names separated by comma]"/>
For more information, check the [configuration reference](Configuration Reference).