From f8bda05b37a9aa3a5aaaa770fdbc0175a08a0416 Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Thu, 23 Jun 2016 11:05:16 +1200 Subject: [PATCH] #751 - @History with @ManyToMany ... intersection table not getting associated history support --- .../dbmigration/model/build/ModelBuildIntersectionTable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java b/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java index d85d1ca51..f7c122954 100644 --- a/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java +++ b/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java @@ -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();