Children entity Qtype fields inherited incorrectly for generic types
Bug #855289 reported by
Vladimir Kulev
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<
public String name;
}
Type of QTestEntity.parent is QTreeEntity, but should be QTestEntity. Hibernate itself handles this situation correctly.
To post a comment you must log in.
Fix commited.