Children entity Qtype fields inherited incorrectly for generic types

Bug #855289 reported by Vladimir Kulev on 2011-09-21
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.

Fix commited.

Changed in querydsl:
status: New → Fix Committed

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  Edit
Everyone can see this information.

Other bug subscribers