this.messager = messager;
}
@Override
public Schema read() {
Schema schema = new Schema(persistence.dbName(), persistence.dbVersion(), updateHookClassName, createHookClassName);
for (Element element : entities) {
TypeElement entity = element.accept(new TypeResolvingVisitor(), null);
TableReader tableReader = new TableReader(entity, entityNames, messager);
Table read = tableReader.read();
if (read != null) {
schema.addTable(read);
}
}
return schema;
}