Java Records: How to use them with Hibernate and JPA
Автор: Thorben Janssen
Загружено: 2020-08-13
Просмотров: 7941
Описание:
A lot of developers complain that Java is too verbose. And I can understand that, especially for all classes that are supposed to be a basic data structure, like entities or DTOs. So, it was no surprise that I got a lot of questions about JDK’s records feature and how you can use it with Hibernate.
In this video, I will show you, how you can use Java records with Hibernate and JPA even though you can’t use them as entities.
Let me immediately answer the 2 most common questions before we get into the details:
Yes, Java records are a great fit for your persistence layer.
But no, you can’t implement an entity using a record.
That’s because of a few important differences between the implementation of a Java record and the requirements of an entity, which I will explain in this video
Like my channel? Subscribe!
➜ http://bit.ly/2cUsid8
Join the free Member Library:
➜https://goo.gl/dtyIIC
Read the accompanying post: https://thorben-janssen.com/java-reco...
Want to connect with me?
➜Blog: https://thorben-janssen.com/
➜Twitter: / thjanssen123
➜Facebook: / thoughtsonjava
#Java #Records #Hibernate
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: