This commit is contained in:
Timo Westkämper 2010-07-29 14:46:51 +00:00
parent 625426a04c
commit e1b379c5e9
4 changed files with 12 additions and 7 deletions

View File

@ -22,9 +22,15 @@ public class QuerydslAnnotationProcessorTest extends AbstractProcessorTest{
}
@Test
public void processInheritance() throws IOException{
File file = new File("src/test/java/com/mysema/query/inheritance/", "Inheritance3Test.java");
process(QuerydslAnnotationProcessor.class, Collections.singletonList(file.getPath()),"qdsl");
public void processInheritance3() throws IOException{
String path = new File("src/test/java/com/mysema/query/inheritance/Inheritance3Test.java").getPath();
process(QuerydslAnnotationProcessor.class, Collections.singletonList(path),"inheritance");
}
@Test
public void processInheritance8() throws IOException{
String path = new File("src/test/java/com/mysema/query/inheritance/Inheritance8Test.java").getPath();
process(QuerydslAnnotationProcessor.class, Collections.singletonList(path),"inheritance");
}
@Test

View File

@ -211,9 +211,7 @@ public final class EntityType extends TypeAdapter implements Comparable<EntityTy
addDelegate(delegate);
}
for (Property property : entityType.getProperties()){
if (!property.isInherited()){
addProperty(property.createCopy(this));
}
addProperty(property.createCopy(this));
}
}

View File

@ -13,7 +13,7 @@ package com.mysema.query.codegen;
*/
public final class TypeResolver {
public static Type resolve(Type type, Type declaringType, EntityType context){
public static Type resolve(Type type, Type declaringType, EntityType context){
Type resolved = type;
// handle generic types

View File

@ -9,6 +9,7 @@ import com.mysema.query.annotations.QuerySupertype;
@QuerySupertype
public class CommonPersistence {
private Long version;
public Long getVersion() {