Java Text Blocks: Using Multiline Strings with Hibernate & JPA

preview_player
Показать описание
JPA and Hibernate require you to write lots of Strings. You use them to create ad-hoc and named queries with JPQL, to define native SQL queries and to specify the fetching behavior in an EntityGraph. Until Java 13, the lack of multiline Strings in Java made all of these tasks either annoying to implement or the code hard to read. You either had to concatenate multiple Strings or put everything into a long, single-line String.
That changed drastically with the introduction of Java Text Blocks. You can finally define Strings that span over multiple lines by using 3 quotation marks.

In this video, I will show you how to use Java Text Blocks with Hibernate & JPA.

Links mentioned:

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#Hibernate #JPA #TextBlocks
Рекомендации по теме
Комментарии
Автор

I have been waiting a long time for this.

ericj.vandervelden
Автор

Hello sir I am beginning in hibernate after adv java
So can you guide which playlist I learn frist

vaibhavkardate