mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* 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
27 lines
402 B
Java
27 lines
402 B
Java
package misc.migration.v1_2;
|
|
|
|
|
|
import javax.persistence.Entity;
|
|
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;
|
|
}
|