[#1730] Compilation errors in SQLite generated code when flag

<instanceFields/> is set to true
This commit is contained in:
Lukas Eder 2012-08-23 20:01:19 +02:00
parent c8d2b997dc
commit e346394ac7
2 changed files with 14 additions and 2 deletions

View File

@ -1582,7 +1582,15 @@ public class DefaultGenerator extends AbstractGenerator {
out.println(" alias) {");
out.print("\t\tsuper(alias, ");
out.print(strategy.getFullJavaIdentifier(schema));
// [#1730] Prevent compilation errors
if (schema.isDefaultSchema()) {
out.print("null");
}
else {
out.print(strategy.getFullJavaIdentifier(schema));
}
out.print(", ");
out.print(strategy.getFullJavaIdentifier(table));
out.println(");");

View File

@ -57,7 +57,11 @@ public class TableImpl<R extends Record> extends AbstractTable<R> {
private final AliasProviderImpl<Table<R>> alias;
public TableImpl(String name) {
this(name, null);
this(name, null, null);
}
public TableImpl(String name, Table<R> aliased) {
this(name, null, aliased);
}
public TableImpl(String name, Schema schema) {