Generating DOM Classes
The DOM is generated during the build phase of the gene-model-dom and gene-model-dom-python projects. Whether it is or not a Composite Data Model application, the generation is performed using the JDL files located in gene-model/spec. These file contains the entities and relationships that define the application data model. For more details, please refer to Chapter Defining the Data Model and Section capacity_planning_jdl_samples_1733331357150.6041.html#apdx--jdl.
The generated code can be found in the gene-model/gene-model-dom/build/generated/src and gene-model/gene-model-dom-python/python/src folders. As the naming implies, those files should NOT be modified since they will be overwritten any time a regeneration is performed.
The generated code includes:
-
A collector class (whose name is computed from the
entities.jdlapplicationjava.collectorClassproperty). -
A factory class used to create collectors.
-
A class for each of the entities defined in the
entities.jdlfile.