mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-23 15:12:58 +00:00
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:
1 parent
ab301f970c
commit
41a31c1aa0
78 files changed
+1668
-127
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package misc.migration.v1_1;
|
||||
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import io.ebean.annotation.DbDefault;
|
||||
import io.ebean.annotation.History;
|
||||
import io.ebean.annotation.NotNull;
|
||||
|
||||
|
||||
@Entity
|
||||
@Table(name = "migtest_e_history6")
|
||||
@History
|
||||
public class EHistory6 {
|
||||
|
||||
@Id
|
||||
Integer id;
|
||||
|
||||
@NotNull
|
||||
@DbDefault("42")
|
||||
Integer testNumber1;
|
||||
|
||||
|
||||
Integer testNumber2;
|
||||
}
|
||||
Reference in new issue
Block a user