trigger based history will recreate view properly and handle default … (#1370)

* trigger based history will recreate view properly and handle default value also for history view

* HistoryTriggers are generated at the end

* Reference Script

* MYSQL: lock all tables at once
This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2018-05-20 17:19:10 +12:00
1 parent ab301f970c
commit 41a31c1aa0
78 files changed
+1668 -127

No files matched your search

@@ -6,15 +6,21 @@ import javax.persistence.Id;
import javax.persistence.Table;
import io.ebean.annotation.History;
import io.ebean.annotation.HistoryExclude;
@Entity
@Table(name = "migtest_e_history2")
@History
public class EHistory2 {
@Id
Integer id;
String testString;
@HistoryExclude
String obsoleteString1;
String obsoleteString2;
}