Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/JPA/Configure"

Line 1: Line 1:
 
To use JPA you will need to have the following configurations:
 
To use JPA you will need to have the following configurations:
  
* Jar's with Entities
+
* Jar(s) containing your Entities, Embeddable's and MappedSuperclasses (all decorated with the necessary annotations or XML descriptors
 
* Properties
 
* Properties
 
** javax.persistence.transactionType - Standard JPA PersistenceUnitTransactionType property, JTA or RESOURCE_LOCAL.
 
** javax.persistence.transactionType - Standard JPA PersistenceUnitTransactionType property, JTA or RESOURCE_LOCAL.
 
** javax.persistence.jtaDataSource - Standard JPA JTA DataSource name.
 
** javax.persistence.jtaDataSource - Standard JPA JTA DataSource name.
 
** javax.persistence.nonJtaDataSource - Standard JPA non-JTA DataSource name.
 
** javax.persistence.nonJtaDataSource - Standard JPA non-JTA DataSource name.

Revision as of 14:43, 15 October 2007

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.

Back to the top