Reproducing project:
nestedviews.zip (88.7 KB)
Long story short, I have 3 entities:
EventBaseEntityInheritedEntity
BaseEntity has a @OneToMany, @Composition relation with the Event.
InheritedEntity inherits BaseEntity.
BaseEntity has @OneToMany relationship with InheritedEntity, thus InheritedEntity has a @OneToOne relationship with BaseEntity.
Now that there’s a bit of context, my issue is that, having a InheritedEntity, that contains a BaseEntity, that has an Event, in the InheritedEntity browser, the Event list present on the BaseEntity, that is attached to the InheritedEntity is fetched as having 0 elements. This behavior is incorrect.
If I reload the the BaseEntity with DataManager as follows: dataManager.reload(inheritedEntity.getBaseEntity, "baseEntity-view"), the list is fetched as having the correct number of Event entities in it.
The CollectionContainer<InheritedEntity> view is set to a view that loads the InheritedEntity's BaseEntity with the same view as above, specifically baseEntity-view.
My explanations are meant to understand easily the attached project in which this issue is visible.
How to check if this issue is visible?
- Open
InheritedEntity browse - Observe that in the
InheritedEntity.event(generated) column there is no value. - Go to
Entity Inspectorand find theBaseEntitycontained in the problematicInheritedEntity(the single one from the browser). - Open it for editing and observe that there is an
Evententity attached to it.
Thank you,
Alex
