Java Records: How to use them with Hibernate and JPA
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-records-hibernate-jpa/
Want to connect with me?
➜Blog: https://thorben-janssen.com/
➜Twitter: https://twitter.com/thjanssen123
➜Facebook: https://www.facebook.com/thoughtsonjava
#Java #Records #Hibernate
Видео Java Records: How to use them with Hibernate and JPA канала Thorben Janssen
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-records-hibernate-jpa/
Want to connect with me?
➜Blog: https://thorben-janssen.com/
➜Twitter: https://twitter.com/thjanssen123
➜Facebook: https://www.facebook.com/thoughtsonjava
#Java #Records #Hibernate
Видео Java Records: How to use them with Hibernate and JPA канала Thorben Janssen
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Coffee with Thorben](https://i.ytimg.com/vi/d02pPmBG3yo/default.jpg)
![Hibernate Envers: Extend the standard revision](https://i.ytimg.com/vi/OQDXzJmGla4/default.jpg)
![Coffee with Thorben - Natural vs Surrogate Primary Keys](https://i.ytimg.com/vi/-nJgHYniXkY/default.jpg)
![JPA: Migrating from JPA 2.x to 3.0](https://i.ytimg.com/vi/11mB8NM8g8c/default.jpg)
![Hibernate Tip: How to Share the Primary Key in a One-to-One Association](https://i.ytimg.com/vi/t9jdfQqmTVU/default.jpg)
![JPA 2.2 - Introducing @Repeatable Annotations](https://i.ytimg.com/vi/zFghAtPii6M/default.jpg)
![Book Update Week 7 – Lots of reviews and a title](https://i.ytimg.com/vi/KwNEayZZH8c/default.jpg)
![Coffee with Thorben - JPQL / Criteria / Native Queries? What's the difference?](https://i.ytimg.com/vi/oA8_fqSp1OY/default.jpg)
![Book Update Week 6 – First draft finally done](https://i.ytimg.com/vi/gSUoDYtm_RA/default.jpg)
![How to call native SQL queries with JPA and Hibernate](https://i.ytimg.com/vi/5qyZlAfSUUs/default.jpg)
![Hibernate Tip: The best way to work with scalar projections](https://i.ytimg.com/vi/g34V7V6Ic_c/default.jpg)
![Book Update Week 2 - Asciidoctor and more Tips](https://i.ytimg.com/vi/TRdA3BE4hEY/default.jpg)
![Hibernate Tip: How to filter entities from a mapped association?](https://i.ytimg.com/vi/n-UYDhdUO64/default.jpg)
![Hibernate: How to Generate Values of Basic Entity Attributes](https://i.ytimg.com/vi/gkh1oojif60/default.jpg)
![Hibernate Tip: Validate that only 1 of 2 associations is not null](https://i.ytimg.com/vi/VYkje7ng_ac/default.jpg)
![Quarkus & Hibernate – Getting Started Guide](https://i.ytimg.com/vi/hPikIWn71Lk/default.jpg)
![Spring Data JPA – Detecting Your Entity’s State](https://i.ytimg.com/vi/GOdh_6pAyYE/default.jpg)
![Red Hat Webinar: Hibernate in complex projects - Can we be a little faster?](https://i.ytimg.com/vi/XSpCmWK0BXw/default.jpg)
![Panache: Repository Pattern](https://i.ytimg.com/vi/zCg9Vl4M_G4/default.jpg)
![Hibernate: Ordering vs Sorting – What should you use?](https://i.ytimg.com/vi/Xm5Ax9D7kyk/default.jpg)
![I'm writing my first book](https://i.ytimg.com/vi/CHrOUIDmvSw/default.jpg)