Add codegen test

This commit is contained in:
Timo Westkämper 2014-07-15 20:16:30 +03:00
parent 2616b9ba21
commit 443536b4d9
2 changed files with 45 additions and 0 deletions

View File

@ -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");
}

View File

@ -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() {
}
}