描述:按照以下代码来创建/更新表,期望生成三个表;实际上只会生成一个表,名称为:nvc_pub__
版本:1.r.66
代码:
@Table("nvc_pub_${category}_${phase}")
public class Publication extends TreeNodePojo implements SortablePojo
pubDao = wrapDao(dao, category, "pub");
draftDao = wrapDao(dao, category, "drf");
revDao = wrapDao(dao, category, "rev");
private void ensureTables() {
ensureTable(pubDao);
ensureTable(draftDao);
ensureTable(revDao);
}
private void ensureTable(Dao dao) {
Daos.migration(dao, Publication.class, true, false);
}
private Dao wrapDao(Dao dao, String category, String phase) {
return Daos.ext(dao, PojoUtils.toMap("category", category, "phase", phase));
}