apache / apache/grails-intellij-plugin

Persistence Tree shows duplicate fields when using domain inheritance

Open
#158 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Using domain inheritance causes the tree to display duplicate fields since it shows those from the parent too, without at least some sort of visual distinction.

E.g. for the domain:
```
class Parent {
String name
}

class Child extends Parent {
}
```
the `name` property appears twice in the Persistence Tree of the `Child` entity.

---

*Imported from [IDEA-123546](https://youtrack.jetbrains.com/issue/IDEA-123546) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Persistence Tree rendering or model code that collects fields for inherited domain classes, then reproduce the Parent and Child example from the issue. Done means the inherited name field is no longer shown twice, or the tree gives the parent and child fields a clear visual distinction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.