#751 - @History with @ManyToMany ... intersection table not getting associated history support

This commit is contained in:
Robin Bygrave
2016-06-23 11:05:16 +12:00
parent 5c8b1eb3bb
commit f8bda05b37
@@ -85,6 +85,11 @@ public class ModelBuildIntersectionTable {
String tableName = intersectionTableJoin.getTable();
MTable table = new MTable(tableName);
if (!manyProp.isExcludedFromHistory()) {
if (localDesc.isHistorySupport()) {
table.setWithHistory(true);
}
}
table.setPkName(ctx.primaryKeyName(tableName));
TableJoinColumn[] columns = intersectionTableJoin.columns();