Use
Use this procedure to create a connection to the database with your use for your persistent entities. Steps Create a new database connection
Choose ...
1. Choose window®show view®other.
2. Choose Data®database Explorer in the show View dialog.
3. Choose OK.
4. Select connections in the Database Explorer.
5. Choose New Connection from the context menu. The New Connection dialog opens.
6. Select a database vendor, for example, if you are using the System database server, select maxdb®7.6.
7. Complete the Connection URL details fields:
A. Enter your database name, for example, if you are using the system database, JP1.
B. Enter the JDBC driver class, for example, the system driver class Com.sap.dbtech.jdbc.DriverSapDB.
C. Enter the location of the JDBC driver class on the file system, for example, if your wish to use the system driver, <sap DB installation Location>/programs/runtime/jar/sapdbc.jar.
d. Enter the connection URL, for example, jdbc:sapdb://<db Host name>/jp1?timeout=0.
8. To use the predefined system datasource, enter Sapdemo as the user name for the database.
9. To use the predefined system datasource, enter Sapdemo as the password for the database.
If the Persistence.xml in your application are empty, the persistence container assumes you are your using the default Datas Ource. Thus, you must supply the Sapdemo user name and password to use the predefined database schema and access the predefined T Ables.
Choose Finish. The database connection appears in the Connections tree in the database Explorer.
The New Connection Dialog connected to an existing database connection
1. To connect to a existing database connection, select the connection in the database Explorer.
2. Choose Connect from the context menu.