mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Merge branch 'master' of github.com:ebean-orm/ebean
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package misc.migration.v1_0;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
|
||||
// table with upper and lower case letters
|
||||
@Table(name = "`migtest_QuOtEd`")
|
||||
@Entity
|
||||
public class EQuoted {
|
||||
|
||||
public enum Status {
|
||||
@EnumValue("N")
|
||||
NEW,
|
||||
|
||||
@EnumValue("A")
|
||||
ACTIVE,
|
||||
|
||||
@EnumValue("I")
|
||||
INACTIVE,
|
||||
}
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
@Index
|
||||
private Status status1;
|
||||
|
||||
@Index(unique = true)
|
||||
private Status status2;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package misc.migration.v1_2;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
|
||||
//table with upper and lower case letters
|
||||
@Table(name = "`migtest_QuOtEd`")
|
||||
@Entity
|
||||
public class EQuoted {
|
||||
|
||||
public enum Status {
|
||||
@EnumValue("N")
|
||||
NEW,
|
||||
|
||||
@EnumValue("A")
|
||||
ACTIVE,
|
||||
|
||||
@EnumValue("I")
|
||||
INACTIVE,
|
||||
}
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
@Index
|
||||
private Status status1;
|
||||
|
||||
@Index(unique = true)
|
||||
private Status status2;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user