Version: $Id: //engine/js.orpersistence.service/NW731CORE_08_REL/src/_orpersistence_standalone/pack/README.TXT#1 $ To run the examples you will need a database. It should contain one table named EMPLOYEE with the columns ID (numeric) and NAME (character data). 1. mapexample The mapexample demonstrates how to pass connection parameters to the JPA persistence provider with the Map argument of javax.persistence.Persistence.createEntityManagerFactory(String, Map). To run the mapexample, you need to provide connection parameters. You can pass them either on the commandline, for example: > mapexample.bat ..\jdbc\sapdbc.jar com.sap.dbtech.jdbc.DriverSapDB jdbc:sapdb://localhost/N09 SAPN09DB secret Or edit the script and assign the values to the variables in the script. The script contains some example values for a connection to a MaxDB. 2. propertyexample The propertyexample demonstrates how to pass connection parameters with provider specific properties in the persistence.xml. To run this example you need to change the persistence.xml in the orpersistence_example.jar. To do this, perform these steps: a) extract the persistence.xml from the orpersistence_example.jar: > jar -xvf orpersistence_example.jar META-INF/persistence.xml b) edit the META-INF/persistence.xml file and provide the connection parameters instead of the place-holders DRIVER, URL, USER and PASSWORD. c) update the jar file with the modified persistence.xml: > jar -uvf orpersistence_example.jar META-INF/persistence.xml