JPA/Hibernate Fundamentals 2023 - Lesson 8 - Entity Inheritance

JPA/Hibernate Fundamentals 2023 - Lesson 8 - Entity Inheritance

Laur Spilca

10 месяцев назад

3,678 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

trishul curtis
trishul curtis - 22.10.2023 03:35

Awesome!

Ответить
The Gajjo
The Gajjo - 13.10.2023 14:49

sir, code generate plugin name where you use in ur IDE

Ответить
Popa Stefan
Popa Stefan - 12.10.2023 21:36

Thanks for this great presentation!
I was trying to combine what i've learned so far from the series and a question come up to my head...
I was wondering what if i have for example:
One base entity with inheritance strategy SINGLE_TABLE (let's call it class A)
Two classes that extend class A having some discriminator values (let's call them B and C)
And now i want to create a new entity which has a @OneToMany relationship both with B and C. (2 lists)
Is this possible? Will hibernate do 2 selects in this case having different where clause for the discriminator column? What if i want to load both lists with only one query?
Thanks in advance! :)

Ответить
Udipta Das
Udipta Das - 22.09.2023 19:30

can you please share the github link for code?

Ответить
FRANCISCO GAZ
FRANCISCO GAZ - 22.09.2023 18:50

The best...Thanks a Lot...regards from Mexico

Ответить
drasko
drasko - 22.09.2023 18:44

Legend!

Ответить