Welcome back aliens! I am now working as a developer, it is my first job, and i am so excited.So good to see that after all the tutorials from your channel I've watched, when I need more info about practical things that I am learning when working in a real project, Telusko is there again to teach me some basic and not-so-basic stuff. Telusko you are the greatest!
I've copied the source code from the github link provided and finally when I'm trying to run it I'm getting the following exception: Exception in thread "main" javax.persistence.PersistenceException: Invalid persistence.xml. Can anyone please help?
gone through core java,jsp servlet,rest web service & now finished Hibernate.. I can ping you personally to say thanks,but now i think you deserve a public applause for the hard work you provide us for free..👏👏👏👏👏👏👏👏 Thank you so much brother 👽
Hey Navi, you are a master!, I took this tutorial seriously and I must say I learn a lot. Thank you for your great explanations, now I know kotlin + hibernate . I am going for a third tutorial :)
I am running into trouble around the 20:00 mark when trying to access mysql through java using the persistence.xml file. Even after adding the @Entity and @Id keywords in my Alien.java class, when I run App.java to fetch data from mysql, I receive the following error: *Source not found for javax.xml.bind.JAXBException* I am using jdk 12 with Eclipse 03-2019. I wonder if anyone knows the solution to this problem. Thanks!
See, i have tried this example but it didn't run. Applicaiton is unable to read persistence.xml i.e. unable to read pu unit. No Persistence provider for EntityManager named pu
i am getting Exception while getting connection that Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
That's one of the best tutorials on JPA online. But I came across some issues. As you described, I've created the persistence.xml, and I gave a unit-name "af". Then in the App.java, I added ==> EntityManagerFactory emf = Persistence.createEntityManagerFactory("fa"); Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named faf
Thanks man I will always remember you and your way of explaining about all these stuffs are awesome keep teaching us , now I have a good knowledge on JPA !
Thanks Navin.. I got clear picture by going through all of your videos in hibernate playlist. I have a question. > When we are using hibernate specific methods, we created hibernate.cfg.xml -> use configuration, SessionFactory and Session classes to get Session. > In JPA tutorial, you had shown creating persistence.xml -> Persistence,EntityManagerFactory and finally Entitymanager, which we use for JPA methods. Now, in a project, can we have both ? and how to add properties like hbm2ddl, show_sql in persistence.xml ?
Nice video,, You are the best Guru...Edit database through JPA (merge function) should have been included as well for the shake of completion for this video.
Sir is there any way we can fetch custom data from database using jpa without specifying a query?like I want to fetch data for employees whose age is more than 30 from database
Hey Navin. In our previous videos you used SessionFactory, Session.... but now you're using EntityManagerFactory, FantityManager. As per my understanding SessionFactory is a Hibernate specific, here you mentioned that EntityManagerFactory is JPA but JPA is only specification, how can use it. Could you bring a light about it. Thanks in advance!
Hi, Navin is explaining about JPA not Hibernate, in this video, used the JPA specification not hibernate. And we have to use JPA sometimes in Hibernate.
How to using entity manager via app-context.xml .while jpa using hibernate.and mention which entity to pick up which in the entity package which entity to pick up.primary data source is different from that of jpa repository.how to connect it using spring boot jpa
Hi when I try to add hibernate dependencies and mysql it's not downloading the libraries required and shows some error that maven could not download repositories at (14:48).
hi , i have a doubt if entity manager is an Interface how can we create an object for EntityManager can any one explian am new to this i think EntityManagerFactory and EntityManager are interfaces
Sir I have a very basic question. If I have learnt Core Java, how do I learn advanced java. I want to understand which order I need to learn JSP, Servlets, Java Web Services,JPA, Hibernate,Spring,Spring Boot... I am not sure which order to learn all this to become a Java Full Stack Dev
Mannnnnn... seriously... we don't need to understand about Hibernate/iBatis. Just learn Spring JPA. That's enough.. Thanks much Naveen. You are simply superb. :)
I still dont understand where Hibernate here cames to the picture.There is no any class imported from Hibernate package. So where are you using Hibernate?What happen if you dont add Hibernate dependency in Pom and just add JPA dependencies?
JPA is just specification. All the implemntation is provided by Hibernate or ibatis. The methods used here (persist(),find(),etc. ) are implemented in hibernate/ibatis.
@@Pvbp27 I know that.But in that code,he is not adding the provider in the persistence-unit xml.I downloaded the code and it works. In others hibernate tutorial you have to add the provider in the xml. So here an empty provider,how does Jpa know that the implementation it s Hibernate?? What is happening under the hood?
Good night. I have an Oracle database with a table with 4 Clob-type fields. The CRUD (Read, Update and Delete) works correctly except for the create shows me the following error when I use Postman. How is the correct syntax in Spring to insert clob type data without showing me the following error: 023-06-13 19:21:15.353 ERROR 6556 --- [nio-8084-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet] with root cause oracle.jdbc.OracleDatabaseException: ORA-00932: tipos de dato inconsistentes: se esperaba - se ha obtenido CLOB.
00:03 JPA stands for Java Persistence API. 02:05 ORM is a concept of object-relational mapping used to save objects in database tables. 06:01 Creating a new Maven project in Eclipse 07:59 Create a class to fetch and store data. 12:36 Implementing Hibernate with dependencies 14:47 Implement entity manager using entity manager factory 19:08 Different settings and behaviors are possible for different applications or times. 21:07 You can save values in a database using transactions 25:05 Understand the power of the overlap tool
Dear sir, video is wonderful but i have one doubt i.e. you said JPA is specification, it can not use stand alone. But in is example u use only JPA not defines code for hibernate while u add dependency of hibernate
Thanks for the great video. big fan of yours. one question, since with JPA we have flexibility to switch easily to other ORM, is it not fair to say that we should always use JPA EntityManager always, rather specific ORM APIs for Hibernate/iBatis?
I have a question please, you said JPA is just specification and not implementation but the code you have written is JPA so where is the implementation ?
Mo.Fuk... Thank you. I have been struggling to have NetBeans to work with derby or mysql without any luck. All the preconfigured files were so messy. This video in conjunction with more videos of your channel finally taught how to have Database working with web services ( restful ) BR
You could use Lombok instead of generating getters and setters. Less boiler plate code, and you could write only setters/getters that are not trivial and maintain the readability of the class.
We need teachers like him in every tech class. No BS, pure knowledge.
Seriously you are not from Earth. You are really an Alien. Wonderful series. Got a lot of knowledge on Hibernate.
yes good teaching.
.but very old video.iam watching in 2024
Welcome back aliens! I am now working as a developer, it is my first job, and i am so excited.So good to see that after all the tutorials from your channel I've watched, when I need more info about practical things that I am learning when working in a real project, Telusko is there again to teach me some basic and not-so-basic stuff. Telusko you are the greatest!
Excellent Teaching sir
I am very Big fan of YOU .
I watched all the video and got Idea about hibernate and ORM...
Thank you sir..
Please try out my videos
yeah man , you explain everything with a simple logic
All I need is Black Coffee and Telusko....Learning is so possible and happening...
Thanks a lot Navin Sir.... Much respect.
I've copied the source code from the github link provided and finally when I'm trying to run it I'm getting the following exception:
Exception in thread "main" javax.persistence.PersistenceException: Invalid persistence.xml.
Can anyone please help?
J is for JOHN P IS FOR PRATS A IS FOR AMACIO, YES HIS NAME THAT GUY JOHN PRATS AMACIO I LOVE THIS BOY GUY
Where did you get the block of persistence code at 19:03. That came out of no where??
gone through core java,jsp servlet,rest web service & now finished Hibernate.. I can ping you personally to say thanks,but now i think you deserve a public applause for the hard work you provide us for free..👏👏👏👏👏👏👏👏
Thank you so much brother 👽
I was always having a confusion whether am using JPA or Hibernate. But now am clear.. Thank you Sir..
Hey Navi, you are a master!, I took this tutorial seriously and I must say I learn a lot. Thank you for your great explanations, now I know kotlin + hibernate . I am going for a third tutorial :)
I am running into trouble around the 20:00 mark when trying to access mysql through java using the persistence.xml file. Even after adding the @Entity and @Id keywords in my Alien.java class, when I run App.java to fetch data from mysql, I receive the following error:
*Source not found for javax.xml.bind.JAXBException*
I am using jdk 12 with Eclipse 03-2019. I wonder if anyone knows the solution to this problem. Thanks!
See, i have tried this example but it didn't run. Applicaiton is unable to read persistence.xml i.e. unable to read pu unit. No Persistence provider for EntityManager named pu
i have solve this issue if u want to knw tell me...
@@AnkitSingh-vm3lu Can you post the solution. I copied the persistence.xml from Git, but I get "No Persistence provider for EntityManager named pu"
No Persistence provider for EntityManager named abc can anyone help me with this error
Same for me, the code does not work anymore!
Can anybody tell me what the hell he copied into persistence.xml file(19:02)? Thank you in advance! :D
Thank you very much for this tutorial! 🙌💙
i am getting Exception while getting connection that Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
Did u find the solution I too m getting the same error
@@kuhooraghuwanshi2033 Did anyone got the solution for that?
very old videos sir. now iam watching in 2024
That's one of the best tutorials on JPA online. But I came across some issues. As you described, I've created the persistence.xml, and I gave a unit-name "af". Then in the App.java, I added ==> EntityManagerFactory emf = Persistence.createEntityManagerFactory("fa"); Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named faf
you are so good teacher and also online tutor
Thank you!
Now I finally understand JPA basics!!
Thanks man I will always remember you and your way of explaining about all these stuffs are awesome keep teaching us , now I have a good knowledge on JPA !
Bhayya kummesaru..your videos giving lot of info
Thanks Navin.. I got clear picture by going through all of your videos in hibernate playlist.
I have a question.
> When we are using hibernate specific methods, we created hibernate.cfg.xml -> use configuration, SessionFactory and Session classes to get Session.
> In JPA tutorial, you had shown creating persistence.xml -> Persistence,EntityManagerFactory and finally Entitymanager, which we use for JPA methods.
Now, in a project, can we have both ? and how to add properties like hbm2ddl, show_sql in persistence.xml ?
you do know well how to teach beginners like us .
you r the best keep doing sir.
Nice video,, You are the best Guru...Edit database through JPA (merge function) should have been included as well for the shake of completion for this video.
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named myPU
I am getting exception:
org.hibernate.UnknownEntityTypeException: Unable to locate persister
kindly help how to resolve it
Maybe you forgot about the annotations: @Entity and @Id or maybe you put the Alien class in a different package.
10:32 "JPA has a special method called find()" Did he mean EntityManager interface has a special method called find instead of JPA??
Sir is there any way we can fetch custom data from database using jpa without specifying a query?like I want to fetch data for employees whose age is more than 30 from database
Great work, you are totally exceptional.
Could you please complete the tutorial on JSP filters too!
Hey Navin.
In our previous videos you used SessionFactory, Session.... but now you're using EntityManagerFactory, FantityManager. As per my understanding SessionFactory is a Hibernate specific, here you mentioned that EntityManagerFactory is JPA but JPA is only specification, how can use it. Could you bring a light about it.
Thanks in advance!
Hi,
Navin is explaining about JPA not Hibernate, in this video, used the JPA specification not hibernate. And we have to use JPA sometimes in Hibernate.
@@sureshbabumaddula3005 Thank for your reply. I suppose that Hibernate does this behind the screen, doesn't it?
How to using entity manager via app-context.xml .while jpa using hibernate.and mention which entity to pick up which in the entity package which entity to pick up.primary data source is different from that of jpa repository.how to connect it using spring boot jpa
Yeah this is great content, other than great teaching material. Thank you Navin! I finally get what JPA is for
Hello sir when ever I try to execute my program it shows hibernate.cfg.xml not found. What can I do?
always the best telusko i do recommend uh to everyone thanks for evrything and keep it up!!!❤❤
In Springboot it's different implementation right ? Were we have to create object of Application Context
Williams Matthew Johnson Jose Taylor Daniel
I want to add external hibernate jar file in eclipse .. so Where can I get Hibernate jar files supportable for Ubuntu operating system.
please make a video on @OneToMany, @ManyToOne and @ManyToMany relationship using spring data jpa.
What about Spring DATA JPA ? It is not being added in this playlist !
Hi when I try to add hibernate dependencies and mysql it's not downloading the libraries required and shows some error that maven could not download repositories at (14:48).
Why cant we use @PersistenceContext instead of entitymanagerFactory?
Awesome Sir Ji, I was always in confusion regarding Hibernate and JPA & Specification and Implementation.
This video helped me alot 🙏🙏
you already has chrome running however you open firefox.. why ?
thank you on the complete hibernate series. I was able to complete it and get good knowledge on Hibernate.
hi , i have a doubt if entity manager is an Interface how can we create an object for EntityManager can any one explian am new to this
i think EntityManagerFactory and EntityManager are interfaces
I love this guy. What a beautiful way of explaining things.
Its all broken now ... good till then not in 2021 unfortunately
The code does not work anymore, lots of errors are present! Concept was crisp! Thank you
Sir I have a very basic question.
If I have learnt Core Java, how do I learn advanced java. I want to understand which order I need to learn JSP, Servlets, Java Web Services,JPA, Hibernate,Spring,Spring Boot... I am not sure which order to learn all this to become a Java Full Stack Dev
Mannnnnn... seriously... we don't need to understand about Hibernate/iBatis. Just learn Spring JPA. That's enough.. Thanks much Naveen. You are simply superb. :)
Hai Naveen where we will find the xml code which pasted in persistance .xml
Can u create a video to analize heap dumbs and stack trace dumps...?
You are probably the best teacher in youtube for programming
Well explained sir keep it up more videos abt java full stack developer
Jpa dependent jars how maven downloaded? We didn't add jpa things in pom.xml right?. How jpa is working?
You are not telling about ojdbc6.jar file setup
So efficient explanation. It is really impressive
I still dont understand where Hibernate here cames to the picture.There is no any class imported from Hibernate package. So where are you using Hibernate?What happen if you dont add Hibernate dependency in Pom and just add JPA dependencies?
JPA is just specification. All the implemntation is provided by Hibernate or ibatis. The methods used here (persist(),find(),etc. ) are implemented in hibernate/ibatis.
@@Pvbp27 I know that.But in that code,he is not adding the provider in the persistence-unit xml.I downloaded the code and it works. In others hibernate tutorial you have to add the provider in the xml. So here an empty provider,how does Jpa know that the implementation it s Hibernate?? What is happening under the hood?
Superb way of teaching.
YOU ARE A LEGEND thank you.
Well explained sir.
Good night. I have an Oracle database with a table with 4 Clob-type fields. The CRUD (Read, Update and Delete) works correctly except for the create shows me the following error when I use Postman. How is the correct syntax in Spring to insert clob type data without showing me the following error:
023-06-13 19:21:15.353 ERROR 6556 --- [nio-8084-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet] with root cause
oracle.jdbc.OracleDatabaseException: ORA-00932: tipos de dato inconsistentes: se esperaba - se ha obtenido CLOB.
Thx for video
Can you explain for me, what diffirence between hibernate.cfg.xml when to use hibernate.cfg.xml when persistence.xml
Nice to watch but can't understand a word
00:03 JPA stands for Java Persistence API.
02:05 ORM is a concept of object-relational mapping used to save objects in database tables.
06:01 Creating a new Maven project in Eclipse
07:59 Create a class to fetch and store data.
12:36 Implementing Hibernate with dependencies
14:47 Implement entity manager using entity manager factory
19:08 Different settings and behaviors are possible for different applications or times.
21:07 You can save values in a database using transactions
25:05 Understand the power of the overlap tool
Excellent explanation. This was really hard for me and I understood everything very well.
Ioo
Harris Brian Jones Linda Hernandez Carol
Alien .. example for an object.😀😂😂 awesome.
Dear sir, video is wonderful but i have one doubt i.e. you said JPA is specification, it can not use stand alone. But in is example u use only JPA not defines code for hibernate while u add dependency of hibernate
awesome, man. went over many jpa video, but your's is so clear. Thank you.
Very nice explanation sir ......thank you very much for this video
Thanks for the great video. big fan of yours. one question, since with JPA we have flexibility to switch easily to other ORM, is it not fair to say that we should always use JPA EntityManager always, rather specific ORM APIs for Hibernate/iBatis?
i also have the same doubt...
Navin sir it is very difficult to see your video from mob ..plz increase font size of IDE in future video can help us.
I have a question please, you said JPA is just specification and not implementation but the code you have written is JPA so where is the implementation ?
I have the same question.. how it's working with just using JPA?
Sir I'm able to clear all my doubts, by watching Hibernate video and this video
And got the clarity how to use and why to use... Thanks a lot sir..
plz make tutorial video on jpql
Extremely Good bro. I learn lot from you. I got better offer. Thanks so much.
awesome ❤
Thank you !! Also thank you for sharing the repo. Appreciate it !!
What is the difference between hibernate.cfg.xml and then this persistence.xml ?
Ibatis has not implement JPA specification right? So its not that easy to change from hibernate to ibatis?
What if In our Alien class we have different variable name what we have in the database column name?
McCullough Station
Sir great video can u please upload complete jpa along with spring boot and how to customized the query
Please try out my videos
sir how to develop own web application ,i learn spring mvc ,hibernate ,jpa,jersey.can you teach to develop web application using these
Mo.Fuk... Thank you. I have been struggling to have NetBeans to work with derby or mysql without any luck. All the preconfigured files were so messy.
This video in conjunction with more videos of your channel finally taught how to have Database working with web services ( restful )
BR
Keeling Orchard
Gulgowski Trail
Very good videos, I'd suggest that you use a mic, the sound is not as good as it should be
743 Langosh Fords
just amazing explanation!
You could use Lombok instead of generating getters and setters. Less boiler plate code, and you could write only setters/getters that are not trivial and maintain the readability of the class.
Nice Explanation
Thanks Navin for the quick JPA overview.
Thompson Crescent
Simply super. the way you explain the concepts. Thank you.
you are fantastic! almost hitting 1M subscribers, cool!! :)