mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
[utf8mb4-support] limited the size of all indexed string columns, as max key length on mysql/mariadb is 767 bytes (which are <= 191 chars on utf8mb4) (#1264)
This commit is contained in:
committed by
Rob Bygrave
parent
a1d0fbb194
commit
b8aa822a30
@@ -13,6 +13,8 @@ import javax.persistence.Id;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Version;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
@@ -26,7 +28,10 @@ public class Contact {
|
||||
@Id
|
||||
int id;
|
||||
|
||||
@Size(max=127)
|
||||
String firstName;
|
||||
|
||||
@Size(max=127)
|
||||
String lastName;
|
||||
|
||||
String phone;
|
||||
|
||||
Reference in New Issue
Block a user