Children entity Qtype fields inherited incorrectly for generic types

Bug #855289 reported by Vladimir Kulev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

Please consider this example:

@MappedSuperclass
public static class TreeEntity<T extends TreeEntity> {
    public Integer id;
    public T parent;
}

@Entity
public static class TestEntity extends TreeEntity<TestEntity> {
    public String name;
}

Type of QTestEntity.parent is QTreeEntity, but should be QTestEntity. Hibernate itself handles this situation correctly.

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Fix commited.

Changed in querydsl:
status: New → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 2.2.3

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.