Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 878 Bytes

File metadata and controls

31 lines (19 loc) · 878 Bytes

Generator module =============

Warning

WIP

Reference documentation of the generator module.

Usage

The generator can be used to create Java classes representing a given openEHR template.

After locally building the SDK with mvn clean install a generator .jar is available.

To generate and entity class from a template generally use:

java  -jar generator-version.jar
-h               show help
-opt <arg>       path to opt file
-out <arg>       path to output directory
-package <arg>   package name

In a custom use case the generation could look like:

java -jar generator/target/generator-$VERSION.jar -opt ../$PATH_TO_TEMPLATE/ehrbase_blood_pressure_simple.de.v0.opt -out ../$OUTPUT_PROJECT/src/main/java -package org.$OUTPUT_PACKAGES.opt