The purpose of this module is to persist and read persisted data. The module is used by the Collector and Lister modules.
A class diagram illustrating X-Road Catalog Persistence with the default
and FI
profiles:
See also the Installation Guide and User Guide.
The database required for X-Road Catalog can be created with the following:
sudo -u postgres psql --file=src/main/sql/init_database.sql
The command for creating the database tables depends on the profile (default
or FI
) that is used. More information
about profiles is available in the build instructions.
- When the
default
profile is used:sudo -u postgres psql --file=src/main/sql/create_tables.sql
- When the
FI
profile is used:sudo -u postgres psql --file=src/main/sql/create_tables_fi.sql
Also note that these scripts will be run automatically (X-Road Catalog Collector spec)
when the xroad-catalog-collector
service (X-Road Catalog Collector service)
is installed to the target server.
X-Road persistence can be built with:
../gradlew clean build
X-Road persistence can be run with Gradle:
../gradlew bootRun
or run from a JAR file:
../gradlew bootRun -Dspring.profiles.active=default