Sorry for the late reply. Let’s look at what can be done in this situation.
The first question that comes to mind is: “What difference between ‘always loaded one-to-one entity’ and ‘embedded entity’? Maybe making StatutMetadataEntite@Embaddable and including it in abstract class as @Embedded property possible?” If so, it will solve all problems.
Otherwise, you can define your own custom fetch plan in fetch-plans.xml and use it in screens by name like _local, _base or _instance_name. I cannot see any inconveniences with it because some fetch plan have to be specified anyway and writing e.g. full instead of _local is not looks like a problem.
Maybe I misunderstood something? What exactly do you mean by:
too large entities … lazy not work …
cannot use plan …
Thx,
I try it today.
Peraphs I missing something but I can’t use abstract fetchplan in extends
In example my personneMorale entity extends masterData abstract class MappedSuperclass JmixEntity
I can’t do it with fetchPlan.
So i will be include all properties into personneMorale fetchPlan.
Gabriel
The issue has been created in order to fix lazy loading behaviour in described case. Thank you for reporting issue and providing project to reproduce it!
As for fetch plan extends problem, studio issue has been created, thank you for reporting this issue!
Framework actually works with ancestor entity fetch plan in extends.
E.g. despite of studio warning, these fetch plans will work in provided project: