mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
added further tests
This commit is contained in:
parent
d4a84ab7af
commit
d8f482ca8b
@ -97,6 +97,8 @@ public class GenericExporterTest extends AbstractProcessorTest{
|
||||
|
||||
expected.add("QGeneric4Test_HidaBezGruppe.java");
|
||||
expected.add("QGeneric4Test_HidaBez.java");
|
||||
expected.add("QGeneric6Test_Cycle1.java");
|
||||
expected.add("QGeneric6Test_Cycle2.java");
|
||||
|
||||
execute(expected, "GenericExporterTest2", "HibernateAnnotationProcessor");
|
||||
}
|
||||
|
||||
@ -13,11 +13,13 @@ public class Generic4Test {
|
||||
|
||||
@MappedSuperclass
|
||||
public static abstract class HidaBez<B extends HidaBez<B, G>, G extends HidaBezGruppe<G, B>> extends CapiBCKeyedByGrundstueck {
|
||||
|
||||
}
|
||||
|
||||
@MappedSuperclass
|
||||
public static abstract class HidaBezGruppe<G extends HidaBezGruppe<G, B>, B extends HidaBez<B, G>> extends
|
||||
CapiBCKeyedByGrundstueck {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class Generic5Test {
|
||||
|
||||
@MappedSuperclass
|
||||
public static class Base<B extends Base<B>> {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static class Entity1<T extends Entity1<T>> {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static class Entity2 extends Entity1<Entity2> {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static class Entity3<T extends Entity3<T>> extends Base<T> {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static class Entity4 extends Entity3<Entity4> {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class Generic6Test {
|
||||
|
||||
@Entity
|
||||
public static class Cycle2<T extends Cycle1<?,?>> {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
public static class Cycle1<U extends Comparable<U>, T extends Cycle2<?>> implements Comparable<Cycle1<U, T>> {
|
||||
|
||||
@Override
|
||||
public int compareTo(Cycle1<U, T> o) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user