[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:
Roland Praml
2018-02-19 16:15:28 +13:00
committed by Rob Bygrave
parent a1d0fbb194
commit b8aa822a30
38 changed files with 193 additions and 109 deletions
@@ -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;