Sie sind auf Seite 1von 6

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

Show Print

Download | Contact

Documentation
Log-in

Forums

Wiki

Bug Database

Blog

MAIN: The Dev - Community Collaboration Space > Databases and Data Models > HQLDB User's Guide

1 de 6

09/05/2011 20:00

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

search...

HQLDB User's Guide


To import an existing HSQLDB database (e.g. the sample 'cmdb' database) from the webapproot into studio

Main Menu The Dev Community Doc Community Quotes Wiki Tag Cloud Wiki Page Index Releases What's New

a. from the menu bar, click 'Services' and select "Database Service".

b. In the database services dialog box, enter input text values as shown below:

c. You can click 'Test Connection' and it should return a successful message as the one shown in the message box below:

d. Click 'Import' should bring the database into your studio. After a successful import, your studio should look like this:

2 de 6

09/05/2011 20:00

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

To create a new database, user leverages the 'Export' feature of HSQLDB


a. Create your data model and when done, click the 'Database Connections' icon as shown below:

b. In the DB connection settings dialog box, enter information as shown below (in this case, 'centerice' is the new data model name and that is also the default name of the underlying HSQLDB we are creating). Because this is the very first time we create this database, we need to check "Is New HSQL Database" checkbox! Click 'Export' will bring the DDL for dropping tables (if applicable) and table creation script for user to verify. Just click OK to proceed with exporting the data model. See the second screen shot below.

3 de 6

09/05/2011 20:00

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

c. To test if the database is created or not, click 'Test Connection' and the message box should display and indicate successful status. Click 'Close' to complete the Database creation process.

d. To further verify the database is indeed created, go to the 'data' subdirectory under your web app root directory. You should see the database 'centerice' already exists, see below:

To import a project zip file which contains some HSQL databases under web app root created from a previous version of WaveMaker studio
a. unzip your project into your WaveMaker's project directory, in the case below, it is "C:wm_productprojectsShowcase"

4 de 6

09/05/2011 20:00

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

b. You need to go to the generated data services subdirectory and manually add one property to the property file .properties as shown in step c. below.

c. In the .properties file, add a property with name 'hsqldbFile' and the value should be your HSQL DB file name. In the sample case below, it is "showcasedb'

d. Then, you open your project as usual and bring up the Database Connection Settings dialog box. You will see something like the following. Note: please leave the 'Is New HSQL Database?' checkbox unchecked.

5 de 6

09/05/2011 20:00

HQLDBUsersGuide

http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide

e. Click 'Save'. This will update the system's property to point to your newly imported project's web app root and therefore the new HSQLDB directory. Note: you do NOT need to do anything in this dialog box, just clicking the 'Save' button will fulfill your needs to update properties. You are all set and ready to go. f. For projects exported with the current version of WaveMaker studio 5.0, user can skip the manual steps b. and c and go straight to step d. to update the db connection settings as described in e.

Comments (0)
LAST MODIFIED BY

Attachments (13)

History

Information

LRAMIREZ ON 04/05/2009 AT 05:49

No comments for this document

2011 WAVEMAKER SOFTWARE ALL RIGHTS RESERVED.

6 de 6

09/05/2011 20:00

Das könnte Ihnen auch gefallen