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
@dhanyapp12 жыл бұрын
All the series of tutorials on Hibernate is informative and presented in a very good manner. Thank you for sharing the same!
@dhritimanpandit27303 жыл бұрын
Thanks man, this video really helped clear my doubts
@StefanFalk9 жыл бұрын
You deserve a lot more up votes!
@sundaramjesudasan10 жыл бұрын
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.
@hyperborean729 жыл бұрын
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
@danishrockz13 жыл бұрын
cascading should be done on inverse side ( Parent entity ).. If u would remove @ManyToOne thn there will be no relationship at all.. hence it's needed.. second point I agree
@harshadkalantri193 жыл бұрын
Got this error - object references an unsaved transient instance - save the transient instance before flushing. Can you tell me how to resolve ?
@siraj367612 жыл бұрын
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
@anasheko24327 жыл бұрын
@NotFound(action = NotFoundAction.IGNORE) is not working with me??
@LeBadman9 жыл бұрын
Why would a CRUD operation on UserDetails affect all the Vehicles?.. I don't understand this. Does someone know, please?
@vinaykumar-no2zh2 жыл бұрын
You can mention not-null="false"
@nehaagrawal3011 жыл бұрын
Hi Koushik, Thanks for this tutorial. I don't get an exception even if I don't use @NotFound. what am I missing?
@andrei-un3yr4 жыл бұрын
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?
@vimalalwaysrocks11 жыл бұрын
Koushks, What book? do you use for Hibernate?
@nikitaparab14837 жыл бұрын
What exception is thrown if we dont write @NotFound ?
@reachmanav6 жыл бұрын
Mine did not throw any exception, but just "Null", so not sure either
@divinity52502 жыл бұрын
06:00 mins: cascades starts
@barry_allen55812 жыл бұрын
What is the exact difference between session.persist() and session.save()????????
@quincyfinnley26533 жыл бұрын
pro trick : you can watch series at flixzone. Me and my gf have been using them for watching loads of movies during the lockdown.
@tuckeraxton90643 жыл бұрын
@Quincy Finnley Definitely, been watching on flixzone for since november myself :D
@lockstockandbarrel33457 жыл бұрын
INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException i m stuck to it .can u please elaborate it sir.
@emorshall8 жыл бұрын
my foreign key in child table gets a null value. please help me.
@simeonmarkov948 жыл бұрын
I had the same concern. Apparently cascading cares only about creating the child table and filling its basic data and not its foreign keys automatically.That means if User is cascade, all entity objects attached to him are just being created without their foreign key to that User being populated. You can just call the setter of the child object and set its User( e.g. not only user.getVehicleList().add(vehicle), but vehicle.setUser(user) as well). The point of the cascade was just to save all attached to some parent object child objects without explicitly bothering the session to do that. I hope I could help at least a bit!
@reachmanav6 жыл бұрын
I encountered the same problem. Apparently, you'll still need to set the user of the vehicle using setter commands.
@maxfeldman66543 жыл бұрын
Any one knows if this series of tutorial's still relevant for 2021?
@tgroy13 жыл бұрын
Yes it is still relevant in 2021.
@whyisitsocomplicated24623 жыл бұрын
Thanks
@Betrayed22711 жыл бұрын
do note this only works if you import javax.persistance.CascadeType; If you use import org.hibernate.CascadeType It will probably not work. I had this issue.
@dinh_kien813 жыл бұрын
very good!, thanks so much! I am from Việt Nam :)
@AaronEzekiel7524 жыл бұрын
so do i
@surajankita16 жыл бұрын
give example of cascadetype refresh,detach and merge