Hibernate Tutorial 16 - CascadeTypes and Other Things

preview_player
Показать описание
In this tutorial, we'll look at some concepts like CascadeType which can be configured for entity relationships.
Рекомендации по теме
Комментарии
Автор

All the series of tutorials on Hibernate is informative and presented in a very good manner. Thank you for sharing the same!

dhanyapp
Автор

Its difficult to leave a comment as words don't really express how brilliant your site Java Brains is .... This is the place to learn all things Java using 21st century learning techniques ...Thank you

davidjohnson
Автор

Thanks man, this video really helped clear my doubts

dhritimanpandit
Автор

I've been looking for Notfound annotation. I have handled like, ObjectNotFoundException in my catch block. This is cool. I'm gonna try this today. Thank you for your effort.

sundaramjesudasan
Автор

@NotFound(action = NotFoundAction.IGNORE) is not working with me??

anasheko
Автор

Got this error - object references an unsaved transient instance - save the transient instance before flushing. Can you tell me how to resolve ?

harshadkalantri
Автор

Dear Koushik,
will you please answer my two questions?

1. Do we need to remove @ManyToOne to Cascade to work?
2. did I understand correct that if Vehicle is a ValueObject then saving its instances to collection on One-side saves them as well (no cascading needed in that case)?

Thank you

hyperborean
Автор

Hi Koushik, Awesome explanation. I have one query. Why don't you using a mapping file?? Which one is preferred? plz let me know. Thank you

siraj
Автор

Why would a CRUD operation on UserDetails affect all the Vehicles?.. I don't understand this. Does someone know, please?

LeBadman
Автор

I'm not getting an exception when using @NotFound(action = NotFoundAction.EXCEPTION) or by not setting it at all.
I instead get null. Does anyone know why?

andrei-unyr
Автор

What is the exact difference between session.persist() and

barry_allen
Автор

What exception is thrown if we dont write @NotFound ?

nikitaparab
Автор

Hi Koushik, Thanks for this tutorial. I don't get an exception even if I don't use @NotFound. what am I missing?

nehaagrawal
Автор

Koushks, What book? do you use for Hibernate?

vimalalwaysrocks
Автор

You can mention not-null="false"

vinaykumar-nozh
Автор

INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : i m stuck to it .can u please elaborate it sir.

lockstockandbarrel
Автор

my foreign key in child table gets a null value. please help me.

emorshall
Автор

Any one knows if this series of tutorial's still relevant for 2021?

maxfeldman
Автор

do note this only works if you

import

If you use

import org.hibernate.CascadeType

It will probably not work. I had this issue.

Betrayed
Автор

very good!, thanks so much! I am from Việt Nam :)

dinh_kien