Can i declare a @jmix entity in separate jar and then import it

I have a large number of entitires they eat the heap memory and jmix crashes. I need to pack them in a jar. Is this possible? Incannot reduce the amount of entities.

It be great if they showed up on the datamodel as read only

Hi Eduardo,

The only suggestion I have is to create a composite project and move some of entities in a separate module.

Some examples:

  • Sample Composite Project - this project demonstrates a possible approach to work with add-ons and applications using them in a single IDE project.
  • Mixed Composite Project - Example of a composite project with a common model add-on and two applications with different UI: classic-app and flow-app.

Regards,
Gleb

Thank you for your response Mr. Gorelov
I tried it but it runs out of memory…
8000 entities…
its from a huge webservice i want to use this as an application to feed data into it

How about putting them as records into an additional data store, maybe HSQL?

It seems that I got the task incorrectly. Is the problem that your project has a lot of entity classes and idea crashes or you load a lot of entities on some screen and application crashes?

Regards,
Gleb

yes. 8000 entities in new project… memory runs out… if i just use plain java i can compile into a jar but then they are not recognized as entities.