Mapping Arrays with Hibernate

preview_player
Показать описание
Arrays are a common data type in Java and part of the SQL-99 standard. So, it should be easy and quite common to use them with Hibernate, right?

Most developers try to avoid using arrays in their persistence layers. There are several reasons for that

In this video, I will show you how to use an array as a data type with Hibernate and the different pitfall’s you should avoid.

Links mentioned:

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

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

Hello Thorben, thank you for the tutorial. One question though, for such scenarios what will be the cost of a convertor?

amanuelgetachew
Автор

Hello Thorben, thank you for the really useful stuff. Could you please suggest whether it will work for oracle database VARRAY types?

sat
Автор

Hello, can you please explain mapping string[] array using data jpa with @Query annotation.... ex i have days[] in postgress, nd i want to query given day is present in days[]

neelamkumari
Автор

Excellent, it would be interesting to implement the data type for Postgres data type jsonb

JosePachecoDeveloper