I’m working on a project that consumes the Cuba REST API. To avoid duplicating code, I want to extract the entities of the global project into a shared project. However moving there entities removes them from the cuba studio Data Model tab.
Is there a way to configure where the Data Model retrieves it’s entities?
with application components you can exactly do that. Sharing code in general and domain models in particular across different applications.
You can read about it here:
and here’s the example code:
Besides application components you can also just use jar files and dependencies to share regular java code that is independent of CUBA and use it in different CUBA apps (as well as other JVM based apps).