mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Added testcase with upper and lower case characters
This commit is contained in:
1 parent
00686fcccf
commit
f1950d479e
126 files changed
+820
-126
No files matched your search
@@ -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