@@ -534,11 +534,12 @@ The JPA specification defines a quite limited set of basic types:
534
534
| Primitive wrappers | `java.lang` | `Boolean`, `Integer`, `Double`, etc
535
535
| Strings | `java.lang` | `String`
536
536
| Arbitrary-precision numeric types | `java.math` | `BigInteger`, `BigDecimal`
537
+ | UUIDs | `java.util` | `UUID`
537
538
| Date/time types | `java.time` | `LocalDate`, `LocalTime`, `LocalDateTime`, `OffsetDateTime`, `Instant`, `Year`
538
539
| Deprecated date/time types 💀 | `java.util` | `Date`, `Calendar`
539
540
| Deprecated JDBC date/time types 💀 | `java.sql` | `Date`, `Time`, `Timestamp`
540
541
| Binary and character arrays | | `byte[]`, `char[]`
541
- | UUIDs | `java.util ` | `UUID `
542
+ | Binary and character wrapper arrays 💀 | `java.lang ` | `Byte[]`, `Character[] `
542
543
| Enumerated types | | Any `enum`
543
544
| Serializable types | | Any type which implements `java.io.Serializable`
544
545
|====
@@ -549,6 +550,13 @@ The JPA specification defines a quite limited set of basic types:
549
550
We're begging you to use types from the `java.time` package instead of anything which inherits `java.util.Date`.
550
551
====
551
552
553
+ [WARNING]
554
+ ====
555
+ The use of `Byte[]` and `Character[]` as basic types was deprecated by Jakarta Persistence 3.2.
556
+ Hibernate does not allow `null` elements in such arrays.
557
+ Use `byte[]` or `char[]` instead.
558
+ ====
559
+
552
560
[CAUTION]
553
561
// .Serialization is usually a bad idea
554
562
====
0 commit comments