[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 authored and Rob Bygrave committed 2018-02-19 16:15:28 +13:00
1 parent a1d0fbb194
commit b8aa822a30
38 files changed
+193 -109

No files matched your search

@@ -2,12 +2,16 @@ package org.tests.compositekeys.db;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.Size;
@Embeddable
public class ItemKey {
@Size(max=127)
private int customer;
@Column(name = "itemNumber")
@Column(name = "itemnumber")
@Size(max=127)
private String itemNumber;
public int getCustomer() {