mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
added import for com.mysema.query.sql.Table
This commit is contained in:
parent
c059da5169
commit
f1328a0df0
@ -11,6 +11,7 @@ import java.util.Collections;
|
||||
import com.mysema.codegen.CodeWriter;
|
||||
import com.mysema.query.codegen.EntitySerializer;
|
||||
import com.mysema.query.codegen.EntityType;
|
||||
import com.mysema.query.codegen.SerializerConfig;
|
||||
import com.mysema.query.codegen.TypeMappings;
|
||||
|
||||
/**
|
||||
@ -40,4 +41,10 @@ public class MetaDataSerializer extends EntitySerializer {
|
||||
String queryType = typeMappings.getPathType(entityType, entityType, true);
|
||||
writer.publicStaticFinal(queryType, variableName, NEW + queryType + "(\"" + alias + "\")");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void introImports(CodeWriter writer, SerializerConfig config, EntityType model) throws IOException {
|
||||
super.introImports(writer, config, model);
|
||||
writer.imports(Table.class);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user