jpa-streamer icon indicating copy to clipboard operation
jpa-streamer copied to clipboard

Code generator: Include fields from multiple level parent classes

Open superdaminou opened this issue 1 year ago • 1 comments

Describe the bug Assuming a inheritance like: C >(inherit) B > A. Assuming that A as an attribute foo and a @MappedSuperclass . Assuming that B as an attribute bar and a @MappedSuperclass Assuming that C is an entity

When using the metamodel for C i should have access to foo. Following https://github.com/speedment/jpa-streamer/issues/328 i correctly have access to C$.bar but not C$.foo

Expected behavior

Metamodel should have access fields from parents on multiple level.

Actual behavior

Metamodel have access only from the fields of direct parents

How To Reproduce Having three class

@MappedSuperclass public class A { var foo; }

@MappedSuperclass public class B extends A { var bar; }

@Entity public class C extends B{}

Build tool e.g. Maven 3.8.7

JPAStreamer version e.g. JPAStreamer 3.0.3

JPA Provider e.g. Hibernate 6.2.9.Final

Java Version e.g. Java 21.0

Additional context Add any other context about the problem here.

superdaminou avatar Feb 29 '24 16:02 superdaminou

same issue

pipinet avatar Oct 11 '24 14:10 pipinet