mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-16 21:01:10 +08:00
25 lines
520 B
Java
25 lines
520 B
Java
package com.mysema.query.codegen;
|
|
|
|
import com.mysema.query.annotations.QueryEntity;
|
|
import com.mysema.query.annotations.QuerySupertype;
|
|
|
|
public class EntityInheritanceTest extends AbstractExporterTest {
|
|
|
|
@QuerySupertype
|
|
public static class TreeEntity<T extends TreeEntity<T>> {
|
|
|
|
public Integer id;
|
|
|
|
public T parent;
|
|
|
|
}
|
|
|
|
@QueryEntity
|
|
public static class TestEntity extends TreeEntity<TestEntity> {
|
|
|
|
public String name;
|
|
|
|
}
|
|
|
|
}
|