mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 07:26:56 +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:
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() {
|
||||
|
||||
Reference in new issue
Block a user