Це відео не доступне.
Перепрошуємо.
Hibernate Tutorial | Full Course
Вставка
- Опубліковано 14 сер 2024
- Check out our courses:
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Intro - 00:00
1. Introduction - 00:05
2. Prerequisites for Hibernate - 02:13
3. Hibernate Theory - 04:44
4. Practical - 14:32
5. How to add Hibernate Plugin in Eclipse - 26:27
6. Configuration File - 28:07
7. Working - 35:20
8. Show SQL Property - 39:58
9. Annotation - 43:21
10. Fetching Data Using Hibernate - 48:08
11. How to use Embeddable Object - 52:37
12. Mapping Relations Theory - 01:00:32
13. Mapping Relations Practical - 01:13:36
14. Fetch EAGER LAZY - 01:29:04
15. Hibernate Caching - 01:35:39
16. Caching Level 1 - 01:44:09
17. Caching Level 2 - 01:50:39
18. Caching Level 2 with Query - 02:00:25
19. Hibernate Query Language Theory (HQL) - 02:04:53
20. Hibernate Query Language (HQL) part 1 - 02:09:03
21. Hibernate Query Language (HQL) part 2 - 02:18:09
22. Hibernate Query Language (HQL) part 3 - 02:26:58
23. Hibernate Object States Persistence Life Cycle - 02:34:03
24. Hibernate Object States (Practical) - 02:40:35
25. Hibernate Get vs Load - 02:47:48
26. What is JPA? & JPA Implementation - 02:53:17
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com
1:17:05 For all who are interested. The standard shortcut in eclipse for refactoring a variable in a single file is to mark this variable and press ALT-SHIFT-R. If you press it 2 times instead the standard refactoring dialouge opens where you can change all references of a variable or method in all files.
Thanks a lot.
ךב 0:05 כ
Alternate would be selection of the variable name, right click, Refactor and then choose Rename.
I never thought that Hibernate can be learnt so fast and easily. You are awesome Navin Reddy Sir. God bless you. :)
Hi, wish you happiness and success my fella.
19:50 import jdbc 7 steps
22:20 import dependencies
27:41 adding some jboss tools addon in eclipse
34:10 acid properties
Hi Navin , for 1:17:12 you can right click on the variable "s" and click on refactor and then rename. It will change the variable name everywhere in the class.
Was searching for this comment
It's the same in IntelliJ as well
I can't thank you enough Navin. You're just too incredible.
I was "The Most Confused" guy while learning Hibernate, but you Navin, made my life easy in these 3:19 hours. Thanks a ton for such videos and sharing your knowledge with such a great sense of understanding. Once I get to my destination, you will be one of the persons to whom I will thank for.
Hi, Didnt you got any error while executing in the first place??
Hi Navin.., I went through the complete course of Maven, JPA and now Hibernate. I can proudly say like now am confident on Hibernate concepts and Implementations. The way you present the concepts are too good and keep up the great work :) :) :) Thanks a lot for all the sessions!!!!
Thanks a lot for this video! My granny used to say: You should live 100 years for the good deeds you did!
Also, I love the technique you've used by explaining what should we do in case of some error and why every step is important in developing.
Se mai uita si romani la clipurile astea, nice :)
What does good deed have anything to do with this video? Why is your granny being dragged in a Hibernate tutorial?
if you can't create the table change the dialect to org.hibernate.dialect.MySQL5Dialect
wasted 2 days just for this. then I saw an answer on stackover flow.
or just check your database engine before setting dialect will save your day or 2. I was trying with MYSQL whereas I need to use MYSOLinnodb and wasted hell lot of time trying to figure out why on the earth I was unable to create a table.
I have did all possible changes but nothing worked! Ultimately your comment make it work :) :) Thanks Friend!
These 3 hours were more useful for me than whole last week, thank you Navin for this, as always, really decent course
is Complete Hibernate has been covered here ????
@@divvagg5616nope, it is just basic, but it is very helpfull
38:12 I don't have ServiceRegistryBuild in my eclipse, Eclipse doesn't suggest me that object what should I do??
@@rahulbhavsar7404 Then probably buildSessionFactory() method is not deprecated in your version. No issues it works.
Respected Navin Sir, seeing your video is better than reading thick,boring,yellow paged old edition books.Your effort of spreading Knowledge is making difference in academic lifes of many like me.THANK YOU!!! and please continue this kind act of sharing knowledge
This was awesome👏✊👍 In one vdo u made us from zero to hero in Hibernate. Thank you🙏💕🙇
37:15 Clapping of love, honor, and trueness. Love you, Sir!!
java , jsp , servlet , jdbc , now hibernate done. thank u soo much sir. from pakistan❤
The way you transform theory into practical is extraordinary.... I loved this Hibernate tutorial....
Error fixes in console helped so much! Without it I would probably do another 3 hours googling them. Great tutorial
I really like that you go from "not working" to "simple" to "more complex" and so on! Thank you for the tutorial!
One of best teacher with best teaching skills.
Step by step explanation , the way you are explaining is awesome 👏🏻
This course is amazing.Every exercise explained well.God bless you Navin.
Agree.This tutorial is simply incredible.
I've been looking for this video for two years now xD, thank you so much for not skipping "the easy parts" I've been struggling to just get my env running for a week I wish I was kidding
many coding channels explain by words but you explain clearly by writing on board and it makes us so simple to understand...thank u so much for this hibernate tutorial❤❤❤❤respect for u from Nepal🇳🇵
very good video, teaching approach is very good, by seeing each error and then root cause of the and after that solution, combined all makes a good solid concept...thanks ...
Yes my brother... totally
38:12 I don't have ServiceRegistryBuild in my eclipse, Eclipse doesn't suggest me that object what should I do??
Your teaching is amazing brother:). Thank you so much for sharing your knowledge, tips and tricks.
To rename variable or methods in eclipse or STS
For MAC: cmd+alt+R
For windows : ctrl+alt+R
For Windows: alt+shift+R
Thanks a lot. I have used Hibernate in 2014 with older versions and moved to other frameworks completely. This 3 hour video is simply awesome to recollect all my previous hibernate work along with new changes in the framework. Appreciate your effort. Keep going.
In Turksih; Yazılıma yeni başlayan birisi olarak yazıyorum ki gayet temiz bir dersti. Hibernate'e dair kafamda hiçbir şey yoktu. Aşinalığı kazandırdı. Şu an sene 2022, dersin hala gideri var. İstifade etmek de şüpheyle yaklaşan arkadaşlar için buraya bırakıyorum.
This course is very nice. Thank You ! :)
Thank you. I have learned a lot today. I have closed missing gap of knowledge about hibernate basics.
Till today, I learnt OOP, spring, spring boot from this man! so good! becomes super clearn after he explains.
Hi Navin, I want to thank you for all your courses. The sessions are very informative and gives good fundamentals on Java / J2EE. Please keep up your good work.!
🔥Search this "Aman Dhattarwal Fan club audio clip"and hit the like on 1st Video to get 2 subscribers per week🔥
I have learnt alot. Thanks!!
Hi Navin , at 1:24:39 , we also need to set Laptops field with the Student i.e. laptop.setStudent(s). Otherwise in the database, the students id which was to be used as a foreign key in the Laptop Table will not be stored. Instead, only NULL will be there in the foreign key place in the Laptop Table.
thanks bro, was not even able to find this online
01:22:43 I think here we have to initialize the Student object because here it is simply null. So while executing the program, the extra row student_rollno will get created but the column value will be null there against the student_rollno. Please correct me if I'm wrong.
Ya i im facing the same issue
navin you are the best teacher
world should have tutors like this man, coz he blindly (i don't know knowingly or unknowingly) code, then get errors and with in saying this line "oh! we got an error... so this is because of " he will know the reason behind the error because of this approach we will also get the mindset to solve errors instead of fearing.
Again thank you for this tutorial. Just want to add:
Not supported anymore: ServiceRegistry reg = new ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry();
New version: ServiceRegistry reg = new StandardServiceRegistryBuilder().applySettings(config.getProperties()).build();
I have seen in a few forums people saying that is good practice to do the following after the code you mentioned:
SessionFactory sessionFactory = configuration.buildSessionFactory(reg);
How do you delete a student to laptop relationship from the foreign table????
Trying to do this__>
Student stu = session.get(Student.class, 1);
stu.getLaptop().remove(lap);
session.update(stu);
Trying to delete a relationship between a student and laptop....but doesn't update.
Need help...Thanks
The way you explain really helps in understanding the concepts, Thanks a lot!
Navin, I watch your videos from Canada and you have helped me understand and love Java! Thank you!
This guy is simply amazing....
Very good and simple explanation. Learn a lot
This is the best Hibernate tutorial ever. Well explained in a very some way.....Really appreciate your effort Naveen..... Keep doing such videos and keep educating us....
"I am not a Superman to remember all this dependencies" this one got me I have been laughing till the end of video 😂😂
I need to learn hibernate for my exam. Your explanation is far better than the one by the lecturer at my uni. Kudos for navin!
I got my first job by following this tutorial 2 years ago, Its still one of the best!
Hii
I love this teaching method when the teacher intentionally and repeatedly runs into errors to explain the key concepts and helps students avoid pitfalls. Amazing!
Hi Navin, I have read so many books and videos on hibernate and jpa. This video cleared all the mapping concepts which other resources could not do. Thanks a lot.
Thanks Navin for this amazing video. It is in my top ten UA-cam videos. I have learned a lot.
sir it.s my humble request to you that plzz provide the spring tutorial in one video because it,s would be very helpful for students
i,m looking forward for your reply
i hope your reply would be positive
thanks sir
Didn't explain on what is the purpose "ServiceRegistry reg = new StandardServiceRegistryBuilder()".. Since it the connection to DB can work with/without it, I dont understand why we need that
Hi Alien... U r so talented.. The way you used to explain concepts is simply Awesome.. Thanks a lot for educating in simple way. :-)
Best explanation , in detail and conceptual learning with examples. Life saviour. Thank you Navin!
Hi Navin. With regards to your query at 1:17:10, you need to highlight the variable, select refactor->rename. Then you can type the new name and it changes everywhere.
Also, you are among the best human beings on UA-cam. Thank you for giving us so much knowledge and helping us get great jobs all for free. This should not be forgotten. I don't know if you care for it but if we had a donation link, we'd love to donate. What you do for us is worth at least 1-10% of our salaries.
Sir, your way of teaching is awesome and ur english is very good & easily understandable. If i want to learn any new technology first i used see ur videos only. Thank you for spending ur valuable time for us. I've seen most of ur all videos, its very useful for me & all. Sir u asked short cut for CHANGING REFERENCE VARIABLE NAME can use SHIFT+ALT+R(In eclipse)
Thank you so much Navin,I learned lot of things from this video.
one of the best tutorials on hibernate, even a beginner like have easily understood this.
Salute and respect 🙏
it cleared my basic concepts for Hibernate. Thank you so much for such a simple and helpful explaination. You are doing a great job. :)
Clear explanation and I understood it easily.Main thing is you explained how hibernates works practically ,Thank you so much for this video 🙏
I love how calmly you face the errors.
Simplesmente o melhor video de hibernate que já assisti. Parabéns!
Lovely tutorials, note now save(); is deprecated you can also use persist();
Thank you so much Navin for these tutorials. I pass my job interviews always thanks to your tutorials
Thanks Navin for this great Session.
1:17:13 - How to change all variables automatically: "In Eclipse"
Step 1: Select the complete variable.
Step 2: Alt + Shft + R
OR
Step 2: Right click> Refactor> Rename
Thanks Sir, You are helping Millions around the globe.
Thank you sir for the all knowledge you’ve taught me! You’ve become my java’s guru!
It was incredibly easy to understand all the concepts, Thanks from Brazil!!
I love this channel because of answered to whole how to do that questions in mind and explain behind the scene.Greate channel
I love the way you teach...Thank you sir🙏
Navin, i don't know how to say thank you. Your content is in another level. God bless you man.
Thanks a lot for making this video. Explained really very well.
Hello Navin , your Teaching style is superb , it would be really great full if you cover and provide tutorial for BPM Engine like Camunda .
Thanks in Advance
1:17:00 To rename all variables in a single attempt, select the variable you want to rename, right click on it > refactor > rename.... and the shortcut is alt+shift+r ........ It works in eclipse and sts as well.... 🤗🤗
what you asked for about renaming references is called refactoring, search for it. A small tip for you, use intellij, extremly easy and supportive in terms of syntax usability. Thank you so much
I saw many channels to learn hibernate......but u r awesome
Your teaching style is amazing.Got my concepts more clear.Thanks a lot
Thank u sir,first time i understood mapping relation so clearly.
Explained very well ,
I just go through it and got some knowledge on it...
Tq sir.
I finally found a solution for my "Could not create connection to database server" problem! (Considering that my password, username, database name were correct)
I'm using a newer version of MySQL and hibernate-core, so
1. I have updated the code as suggested in the comments:
ServiceRegistry reg = new StandardServiceRegistryBuilder().applySettings(con.getProperties()).build();
+ org.hibernate.dialect.MySQL5Dialect
2. I changed in hibernate.cfg.xml
from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver
3. In pom.xml updated maven dependencies to the latest at the moment
hibernate-core to 5.4.17.Final
mysql-connector-java to 8.0.20
4. Then I faced time-zone error, and changed in hibernate.cfg.xml
jdbc:mysql://localhost:3306/my_database?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
sources: stackoverflow.com/questions/42768265/unable-to-create-requested-service-org-hibernate-engine-jdbc-env-spi-jdbcenvir
stackoverflow.com/questions/26515700/mysql-jdbc-driver-5-1-33-time-zone-issue
Could you provide your main code? I still can't connect to mysql database server. Thanks
@@jetyi1652 Do you mean the code of main method?
It is basically the same with a small change:
Configuration con = new Configuration()
.configure().addAnnotatedClass(Alien.class);
ServiceRegistry reg = new StandardServiceRegistryBuilder().applySettings(con.getProperties()).build();
SessionFactory sf = con.buildSessionFactory(reg);
Session session = sf.openSession();
Transaction tx = session.beginTransaction();
session.save(telusko);
tx.commit();
Also, please double check your username and password for connection to MySQL server.
@@ocherki Thanks a lot! It finally works.
@@jetyi1652 Hey, can you share the full code. I tried almost every thing but still facing the issue
thanks...@Olga Chereokova
The detach() method at 02:45:54 has changed to evict(). Same work just name changed
Also remove() method to delete() method
Thanks! I just realized there's no detach() method.
Timestamps as Memory aids for video: -
31:13 Alien not found, IPC 504 Not applicable
37:13 clap please
53:23 Full Name revealed
1:05:05 one Laptop vs many Laptops
1:10:50 Ego problem
1:17:00 Alt T N or Alt Shift R
1:29:29 refer to Collection Laptop
1:30:30 a poor Rahul
2:22:10 did anyone see any console output until 2:24:44
2:29:29 What we want
2:45:45 method detach explained
3:03:03 hey jpa plz give me alien object with id 4 not 4 3
3:17:27 GitHub link in Description
Alien Planet
"lets see if we can do one more thing" you make me stretch myself and learn more .Really love your videos .Keep it up
THANK YOU! This is the only tutorial that I’ve found that explains everything a beginner needs to know about hibernate ❤️
For this I would subscribe twice if I could
I'm getting this error, while fetching the whole data, anyone have any clue?
"Error interpreting query [from student where id=1]; this may indicate a semantic (user query) problem or a bug in the parser
at org.hibernate.query.hql.internal.StandardHqlTranslator.translate(StandardHqlTranslator.java:62)"
One of the best , if not the best, Course on the subject. Thank you so much
Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Error showing
How to solve it sir
Laude
The coolest teacher in programming world.
The best channel when learning java hibernate
I paid money in an institute to learn java ,but learned from your channel Navin , and now I learnt hibernate also. Thanks for the this with proper examples
Thank you so much for the video. It is very much useful to learn a lot of new things about Hibernate in just 3 hours.
Eclipse itself supports - To change the same variable or any code at the same time just select the variable -> Right Click - > Refactor -> Rename then start typing and when done just press enter . you will see the text or same variable is changing
Thanks
It's a fantastic session Navin ... It was really practical, fun and simple to memorize the things.. 😊 Thank you so much 👏👏👏❤
Thanks for providing practical knowledge on Hibernate and JPA
Thank you so much sir for such an informative video 😊
You should have seen the joy on my face when I saw the Aliens table appear in my sql studio after so much of head breaking.
Nice video. My hibernate got revised in 3hrs just. Thanks bro :)
It's very confusion for me when I was working with this stuff but after seeing ur videos now only I'm getting clarity finally thank u so much navin sir
Thank you so much. u r tutorial really helped me to understand java ,springboot and now hibernate.
Big round of applause 👏👏👏👏
Your videos are great. I pray to god for your long life.
such a beautiful comment 😍
Thatipalli NaveenKumarReddy BAPREDDY of telusko tutorials. Thank you so much for Making me truly understand the concepts of Hibernate.
1:17:05 that works for variables, methods and not for objects, if you are curious to know how to do it for variables, select the variable, right click->Refactor->Rename.
You are a true gentleman and super star 🌟🌟