jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
488 stars 112 forks source link

Incorrect Fetch plan selection for a child entity #1230

Open rusiaikinat opened 1 year ago

rusiaikinat commented 1 year ago

env Jmix version: 1.4.999-SNAPSHOT Jmix Studio plugin version: 1.4.1-223 IntelliJ version: IntelliJ IDEA 2022.3 RC (Community Edition)

TC Crete JPA Entity (name: EntityOne) Add 2 attributes: 1) Datatype 2) ASSOCIATION (Many-to-one) with User entity

Create JPA Entity (name: EntityTwo) extends EntityOne Add Datatype attribute

Create Browse and Edit screen for EntityTwo. The entity must have all the attributes from the parent entity. Run project, create an item in the screen EntityTwo

Create Fetch plan for EntityTwo, in which association element from the parent entity are missing Specify the created fetch plan in the browse screen instead of _base

Run project, Open screen browse

AR Association element is present in the table

ER There should be no Association element. If you remove a simple element from the plan, an error message will appear. The same message should be for the Association element

Project: project.zip

rusiaikinat commented 2 months ago

reproduced in:

Jmix version: 1.6.999-SNAPSHOT Jmix Studio plugin version: 2.3.SNAPSHOT6304-233 IntelliJ version: IntelliJ IDEA 2023.3.6 (Community Edition)