g.generateByModelProvider(new DbTableGeneratorModelProvider(table));
}
public void generateByClass(Class clazz) throws Exception {
Generator g = createGeneratorForJavaClass();
g.generateByModelProvider(new JavaClassGeneratorModelProvider(new JavaClass(clazz)));
}