EclipseLink/Examples/JPA/Configure

From Eclipsepedia

Jump to: navigation, search

To use JPA you will need to have the following configurations:

  • Jar(s) containing your Entities, Embeddable's and MappedSuperclasses (all decorated with the necessary annotations or XML descriptors)
  • Properties
    • javax.persistence.transactionType - Standard JPA PersistenceUnitTransactionType property, JTA or RESOURCE_LOCAL.
    • javax.persistence.jtaDataSource - Standard JPA JTA DataSource name.
    • javax.persistence.nonJtaDataSource - Standard JPA non-JTA DataSource name.