mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
36 lines
549 B
Java
36 lines
549 B
Java
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;
|
|
|
|
}
|