QuantumDB Configuration
QuantumDB is an Eclipse plugin that lets you view a database. This is a quick start guide.
Download and Install
- Download GEF (a required package) from here
- Download QuantumDB from here
- Open the GEF zip file and extract just the plugins and features directories directly into you eclipse installation (c:\eclipse)
- Open the QuantumDB zip file and extract just the plugins and features directories directly into your eclipse installation (c:\eclipse)
- Restart Eclipse
Start your Database
This example assumes hypersonic is running with the following startup script:
In our examples, we created a folder called database under the installation directory of hypersonic, so the full folder name is:
Assuming java is in your classpath, the following command will start hypersonic:
JPA in JSE Settings
persistence.xml
JPA in JEE Settings
This assumes you are using the JBoss Embedded container.
And the additions to embedded-jboss-bean.xml:
Using the Perspective
Now that everything is setup, you’ll need to open the perspective and form a connection to the database.
- Click the Open Perspective button and select Other
- Select Quantum DB and click OK
- Right-click in Database Bookmarks pane and select New Bookmark…
- Click on the Add Driver button
- Click on Add External Jar…
- Find hsqldb.jar (c:\libs\hsqldb\lib\hsqldb.jar) and click Open
- Click on Browse…
- Select org.hsqldb.jdbcDriver and click ok
- Click on Finish
- Select the driver you just added (it is probably the first in the list but look in the JDBC Driver Name column for org.hsqldb.jdbcDriver
- Click Next
- In the Userid field, enter sa
- Leave the Password field blank
- Leave Prompt for Password unselected
- In the JDBC URL filed, enter jdbc:hsqldb:hsql://localhost/xdb
- Name your bookmark HypersonicLocalServer and click Finish
- Double-click on you new HypersonicLocalServer Bookmark
- Expand PUBLIC
- Expand Tables
At this point you can experiment with the plugin.
Comments