mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
Add codegen test
This commit is contained in:
parent
2616b9ba21
commit
443536b4d9
@ -90,6 +90,8 @@ public class GenericExporterTest extends AbstractProcessorTest {
|
||||
expected.add("QGeneric12Test_ChannelRole.java");
|
||||
expected.add("QManyToManyTest_Person.java");
|
||||
expected.add("QOneToOneTest_Person.java");
|
||||
//expected.add("QGeneric16Test_HidaBez.java");
|
||||
expected.add("QGeneric16Test_HidaBezGruppe.java");
|
||||
|
||||
execute(expected, "GenericExporterTest2", "HibernateAnnotationProcessor");
|
||||
}
|
||||
|
||||
@ -0,0 +1,43 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import java.util.Set;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class Generic16Test {
|
||||
|
||||
@Entity
|
||||
public static abstract class HidaBez<B extends HidaBez<B, G>, G extends HidaBezGruppe<G, B>> extends CapiBCKeyedByGrundstueck {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static abstract class HidaBezGruppe<G extends HidaBezGruppe<G, B>, B extends HidaBez<B, G>> extends CapiBCKeyedByGrundstueck {
|
||||
|
||||
Set<HidaBez> bez;
|
||||
|
||||
}
|
||||
|
||||
@MappedSuperclass
|
||||
public static abstract class CapiBCKeyedByGrundstueck extends CapiBusinessClass {
|
||||
|
||||
}
|
||||
|
||||
@MappedSuperclass
|
||||
public static abstract class CapiBusinessClass implements ICapiBusinessClass {
|
||||
|
||||
}
|
||||
|
||||
public interface ICapiBusinessClass extends Comparable<ICapiBusinessClass> {
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user