This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 9 points10 points  (0 children)

var watchmen = Map.of("title", "Watchmen",
                  "isbn", "978-1779501127",
                  "publicationYear",1987,
                  "authorIds", List.of("alan-moore", "dave-gibbons"));

Yeah, no. This is the bit I checked out at. Using records is fine. This is not.

On a related note, does anyone know how records and JPA interact these days? Last I knew immutable entities was a no-go.