Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Update type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mirromutth committed Sep 28, 2019
1 parent e0e5f5f commit 7e6f814
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,13 @@ This reference table shows the type mapping between [MySQL][m] and Java data typ
| FLOAT | SIGNED/UNSIGNED | `Float`, `BigDecimal` |
| DOUBLE | SIGNED/UNSIGNED | `Double`, `BigDecimal` |
| DECIMAL | SIGNED/UNSIGNED | `BigDecimal`, `Float` (Size less than 7), `Double` (Size less than 16) |
| BIT | - | `BitSet`, `Boolean` (Size is 1), `byte[]` |
| BIT | - | `ByteBuffer`, `BitSet`, `Boolean` (Size is 1), `byte[]` |
| DATETIME/TIMESTAMP | - | `LocalDateTime` |
| DATE | - | `LocalDate` |
| TIME | - | `Duration`, `LocalTime` |
| YEAR | - | `Short`, `Integer`, `Long`, `BigInteger`, `Year` |
| VARCHAR/NVARCHAR | - | `String` |
| VARBINARY | - | `ByteBuffer`, `Blob`, `byte[]` |
| CHAR/NCHAR | - | `String` |
| ENUM | - | `String`, `Enum<?>` |
| SET | - | `String[]`, `String`, `Set<String>` and `Set<Enum<?>>` (`Set<T>` need use `ParameterizedType`) |
Expand Down

0 comments on commit 7e6f814

Please sign in to comment.