-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3107 from FOCONIS/json-tests
DB specific length support in JSONs/Varchars/binary data
- Loading branch information
Showing
103 changed files
with
3,279 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
ebean-test/src/test/java/misc/migration/v1_1/ETestBinary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package misc.migration.v1_1; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
import javax.validation.constraints.Size; | ||
|
||
@Entity | ||
@Table(name = "migtest_e_test_binary") | ||
public class ETestBinary { | ||
|
||
@Id | ||
int id; | ||
|
||
@Size(max = 16) | ||
byte[] test_byte16; | ||
|
||
@Size(max = 256) | ||
byte[] test_byte256; | ||
|
||
@Size(max = 512) | ||
byte[] test_byte512; | ||
|
||
@Size(max = 1024) | ||
byte[] test_byte1k; | ||
|
||
@Size(max = 2 * 1024) | ||
byte[] test_byte2k; | ||
|
||
@Size(max = 4 * 1024) | ||
byte[] test_byte4k; | ||
|
||
@Size(max = 8 * 1024) | ||
byte[] test_byte8k; | ||
|
||
@Size(max = 16 * 1024) | ||
byte[] test_byte16k; | ||
|
||
@Size(max = 32 * 1024) | ||
byte[] test_byte32k; | ||
|
||
@Size(max = 64 * 1024) | ||
byte[] test_byte64k; | ||
|
||
@Size(max = 128 * 1024) | ||
byte[] test_byte128k; | ||
|
||
@Size(max = 256 * 1024) | ||
byte[] test_byte256k; | ||
|
||
@Size(max = 512 * 1024) | ||
byte[] test_byte512k; | ||
|
||
@Size(max = 1024 * 1024) | ||
byte[] test_byte1m; | ||
|
||
@Size(max = 2 * 1024 * 1024) | ||
byte[] test_byte2m; | ||
|
||
@Size(max = 4 * 1024 * 1024) | ||
byte[] test_byte4m; | ||
|
||
@Size(max = 8 * 1024 * 1024) | ||
byte[] test_byte8m; | ||
|
||
@Size(max = 16 * 1024 * 1024) | ||
byte[] test_byte16m; | ||
|
||
@Size(max = 32 * 1024 * 1024) | ||
byte[] test_byte32m; | ||
|
||
} |
Oops, something went wrong.