Do I need to create a Composite Project in order to successfully create Submodule entity tables?

Hi,

I was rebuilding my app which makes use of 3 submodules in a specific 2-level hierarchy and came across the problem that liquibase wouldn’t generate the database tables associated to submodule entitites directly from the App project.

The solution was to create a Composite project and generate “Liquibase changelog” from there, then it immediately recognized Entity inheritors from submodules and did the trick.

However I thought Composite projects were an option not an obligation when working with submodules. Is there any way to create the submodule entity tables without the need of using Composite projects?

Directly inside the App project I was trying to do so by generating the Liquibase changelog, but I was only successful when doing that from inside the Composite project.

Any guidance to better understand this is greatly appreciated.

Many thanks in advance.
Carlos.

Hi

In case you don’t want to use Composite project you need to provide Liquibase changelogs along with add-on and include add-on root changelog.xml file into the app root changelog. As Jmix modules (e.g. jmix-data, jmix-security-data) do.
To generate Liquibase changelogs for the add-on data model add main data store for the add-on that connects to some dev database and use Generate Liquibase Changelog action.

Awesome.

I was actually thinking of doing so, but preferred to ask first.

Thanks for the quick answer.

Carlos.