table name as static variable,which can be used in other scenarios
// Now
public final class CorpDynamicSqlSupport {
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public static final class Corp extends AliasableSqlTable<Corp> {
public final SqlColumn<String> corpId = column("corp_id", JDBCType.VARCHAR);
public ScheduleCorpConfigItem() {
super("corp", ScheduleCorpConfigItem::new);
}
}
}
// Suggestion Change
public final class CorpDynamicSqlSupport {
// !!!
public static final String TABLE_NAME = "corp";
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public static final class Corp extends AliasableSqlTable<Corp> {
public final SqlColumn<String> corpId = column("corp_id", JDBCType.VARCHAR);
public ScheduleCorpConfigItem() {
super(TABLE_NAME, ScheduleCorpConfigItem::new);
}
}
}
Version: 1.4.2
Suggestion
table name
as static variable,which can be used in other scenarios