What is JPA? | JPA Implementation

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 287

  • @syedmahmood7454
    @syedmahmood7454 2 года назад +32

    We need teachers like him in every tech class. No BS, pure knowledge.

  • @Pvbp27
    @Pvbp27 5 лет назад +53

    Seriously you are not from Earth. You are really an Alien. Wonderful series. Got a lot of knowledge on Hibernate.

    • @vijaysukumarv3512
      @vijaysukumarv3512 6 месяцев назад +2

      yes good teaching.
      .but very old video.iam watching in 2024

  • @TonyBlundetto86
    @TonyBlundetto86 5 лет назад +31

    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!

  • @trynew7759
    @trynew7759 6 лет назад +34

    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..

  • @urimahmetaj238
    @urimahmetaj238 5 лет назад +18

    yeah man , you explain everything with a simple logic

  • @j-farmer8619
    @j-farmer8619 4 года назад +8

    All I need is Black Coffee and Telusko....Learning is so possible and happening...
    Thanks a lot Navin Sir.... Much respect.

  • @swarnavonath7173
    @swarnavonath7173 3 года назад +1

    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?

  • @johnlawrencecaratao7108
    @johnlawrencecaratao7108 3 года назад +2

    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

  • @Nathan.Nguyen
    @Nathan.Nguyen 3 года назад

    Where did you get the block of persistence code at 19:03. That came out of no where??

  • @BoogieBash
    @BoogieBash 4 года назад +4

    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 👽

  • @thiyakarasanrk8744
    @thiyakarasanrk8744 5 лет назад +4

    I was always having a confusion whether am using JPA or Hibernate. But now am clear.. Thank you Sir..

  • @misakyanzye4269
    @misakyanzye4269 4 года назад +7

    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 :)

  • @afifkhaja
    @afifkhaja 5 лет назад +1

    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!

  • @ajaydhiman2368
    @ajaydhiman2368 5 лет назад +2

    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

    • @AnkitSingh-vm3lu
      @AnkitSingh-vm3lu 5 лет назад

      i have solve this issue if u want to knw tell me...

    • @femaledeer
      @femaledeer 4 года назад

      @@AnkitSingh-vm3lu Can you post the solution. I copied the persistence.xml from Git, but I get "No Persistence provider for EntityManager named pu"

  • @poonampreetkaurable
    @poonampreetkaurable 2 года назад +1

    No Persistence provider for EntityManager named abc can anyone help me with this error

    • @nilaypaul9810
      @nilaypaul9810 2 года назад

      Same for me, the code does not work anymore!

  • @dragandanicic1008
    @dragandanicic1008 5 лет назад +1

    Can anybody tell me what the hell he copied into persistence.xml file(19:02)? Thank you in advance! :D

  • @adarshkrchaudhary2269
    @adarshkrchaudhary2269 3 года назад +1

    Thank you very much for this tutorial! 🙌💙

  • @vikrantmanekar4817
    @vikrantmanekar4817 4 года назад +1

    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

    • @kuhooraghuwanshi2033
      @kuhooraghuwanshi2033 4 года назад

      Did u find the solution I too m getting the same error

    • @puneetagarwal1662
      @puneetagarwal1662 3 года назад

      @@kuhooraghuwanshi2033 Did anyone got the solution for that?

  • @vijaysukumarv3512
    @vijaysukumarv3512 6 месяцев назад +1

    very old videos sir. now iam watching in 2024

  • @Go4omir
    @Go4omir 6 лет назад +1

    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

  • @MustafaKHAN-sw1xb
    @MustafaKHAN-sw1xb 6 лет назад +6

    you are so good teacher and also online tutor

  • @atharvadeshmukh6328
    @atharvadeshmukh6328 16 дней назад

    Thank you!
    Now I finally understand JPA basics!!

  • @aswinkumar3837
    @aswinkumar3837 4 года назад +2

    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 !

  • @kiran815
    @kiran815 5 лет назад +1

    Bhayya kummesaru..your videos giving lot of info

  • @padarthiharibabu9412
    @padarthiharibabu9412 6 лет назад +2

    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 ?

  • @foodlover3128
    @foodlover3128 5 лет назад +2

    you do know well how to teach beginners like us .
    you r the best keep doing sir.

  • @gajeshtripathi5721
    @gajeshtripathi5721 4 года назад +1

    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.

  • @praveenbinniboyina1455
    @praveenbinniboyina1455 3 года назад

    Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named myPU

  • @sanchitamanocha8924
    @sanchitamanocha8924 5 лет назад +1

    I am getting exception:
    org.hibernate.UnknownEntityTypeException: Unable to locate persister
    kindly help how to resolve it

    • @ProfesorBruno
      @ProfesorBruno 5 лет назад

      Maybe you forgot about the annotations: @Entity and @Id or maybe you put the Alien class in a different package.

  • @saveUyghurs
    @saveUyghurs 5 лет назад +2

    10:32 "JPA has a special method called find()" Did he mean EntityManager interface has a special method called find instead of JPA??

  • @the_rocker7786
    @the_rocker7786 7 месяцев назад

    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

  • @MichaelElimu
    @MichaelElimu 6 лет назад +3

    Great work, you are totally exceptional.
    Could you please complete the tutorial on JSP filters too!

  • @ЦветославЦветков-д7ч

    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!

    • @sureshbabumaddula3005
      @sureshbabumaddula3005 5 лет назад

      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.

    • @ЦветославЦветков-д7ч
      @ЦветославЦветков-д7ч 5 лет назад

      ​@@sureshbabumaddula3005 Thank for your reply. I suppose that Hibernate does this behind the screen, doesn't it?

  • @saivenkatkavali8264
    @saivenkatkavali8264 3 года назад

    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

  • @alessandromurtas6067
    @alessandromurtas6067 2 года назад +1

    Yeah this is great content, other than great teaching material. Thank you Navin! I finally get what JPA is for

  • @vigneshk3727
    @vigneshk3727 3 года назад

    Hello sir when ever I try to execute my program it shows hibernate.cfg.xml not found. What can I do?

  • @divyanshsapkale9415
    @divyanshsapkale9415 Год назад

    always the best telusko i do recommend uh to everyone thanks for evrything and keep it up!!!❤❤

  • @dhirajctx
    @dhirajctx 2 года назад

    In Springboot it's different implementation right ? Were we have to create object of Application Context

  • @DebraLittle-pz5um
    @DebraLittle-pz5um 14 дней назад

    Williams Matthew Johnson Jose Taylor Daniel

  • @mohangabhale5555
    @mohangabhale5555 Год назад

    I want to add external hibernate jar file in eclipse .. so Where can I get Hibernate jar files supportable for Ubuntu operating system.

  • @ImranShaikh-tg7hy
    @ImranShaikh-tg7hy 5 лет назад +1

    please make a video on @OneToMany, @ManyToOne and @ManyToMany relationship using spring data jpa.

  • @DevOpsMIS
    @DevOpsMIS 11 месяцев назад

    What about Spring DATA JPA ? It is not being added in this playlist !

  • @dkrgaming1129
    @dkrgaming1129 2 года назад

    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).

  • @pavithravenkatesh3606
    @pavithravenkatesh3606 3 года назад

    Why cant we use @PersistenceContext instead of entitymanagerFactory?

  • @rahul-java-dev
    @rahul-java-dev 3 года назад +1

    Awesome Sir Ji, I was always in confusion regarding Hibernate and JPA & Specification and Implementation.
    This video helped me alot 🙏🙏

  • @Redmi-be7lh
    @Redmi-be7lh 3 года назад

    you already has chrome running however you open firefox.. why ?

  • @akshayverma6216
    @akshayverma6216 3 года назад +1

    thank you on the complete hibernate series. I was able to complete it and get good knowledge on Hibernate.

  • @vishnuvardhan7204
    @vishnuvardhan7204 2 года назад

    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

  • @shubhamyadav388
    @shubhamyadav388 4 года назад +1

    I love this guy. What a beautiful way of explaining things.

  • @pulkitkaushik4539
    @pulkitkaushik4539 3 года назад

    Its all broken now ... good till then not in 2021 unfortunately

  • @nilaypaul9810
    @nilaypaul9810 2 года назад

    The code does not work anymore, lots of errors are present! Concept was crisp! Thank you

  • @chad-thuggins
    @chad-thuggins Год назад

    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

  • @venkatreddy6718
    @venkatreddy6718 3 года назад

    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. :)

  • @venkatasaidamacharla9444
    @venkatasaidamacharla9444 3 года назад

    Hai Naveen where we will find the xml code which pasted in persistance .xml

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft 2 года назад

    Can u create a video to analize heap dumbs and stack trace dumps...?

  • @Lallushe
    @Lallushe 4 года назад +1

    You are probably the best teacher in youtube for programming

  • @premkumar-jz4di
    @premkumar-jz4di 2 года назад

    Well explained sir keep it up more videos abt java full stack developer

  • @venkataramanareddy8947
    @venkataramanareddy8947 5 лет назад

    Jpa dependent jars how maven downloaded? We didn't add jpa things in pom.xml right?. How jpa is working?

  • @dibyansumishra2813
    @dibyansumishra2813 4 года назад

    You are not telling about ojdbc6.jar file setup

  • @traveho2747
    @traveho2747 2 года назад

    So efficient explanation. It is really impressive

  • @alxx736
    @alxx736 5 лет назад +1

    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?

    • @Pvbp27
      @Pvbp27 5 лет назад

      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.

    • @alxx736
      @alxx736 5 лет назад +1

      ​@@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?

  • @tejaseervi1151
    @tejaseervi1151 Год назад

    Superb way of teaching.

  • @XpLoeRe
    @XpLoeRe 5 лет назад +7

    YOU ARE A LEGEND thank you.

  • @akashsahu3338
    @akashsahu3338 3 года назад +1

    Well explained sir.

  • @hangofox1720
    @hangofox1720 Год назад

    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.

  • @yusufcancelik1003
    @yusufcancelik1003 6 лет назад +1

    Thx for video
    Can you explain for me, what diffirence between hibernate.cfg.xml when to use hibernate.cfg.xml when persistence.xml

  • @PabloPazosGutierrez
    @PabloPazosGutierrez 4 года назад

    Nice to watch but can't understand a word

  • @backclover9651
    @backclover9651 11 месяцев назад

    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

  • @raigamageperera4748
    @raigamageperera4748 4 года назад +2

    Excellent explanation. This was really hard for me and I understood everything very well.

  • @KelloggStan
    @KelloggStan Месяц назад

    Harris Brian Jones Linda Hernandez Carol

  • @Azhagusuryaa2696
    @Azhagusuryaa2696 6 лет назад +1

    Alien .. example for an object.😀😂😂 awesome.

  • @suniltariyal9643
    @suniltariyal9643 4 года назад

    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

  • @Suraj-pf6ic
    @Suraj-pf6ic Год назад

    awesome, man. went over many jpa video, but your's is so clear. Thank you.

  • @reshamdevirajasthan2124
    @reshamdevirajasthan2124 4 года назад

    Very nice explanation sir ......thank you very much for this video

  • @gagangandhi8807
    @gagangandhi8807 4 года назад +1

    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?

    • @dilin_raj
      @dilin_raj Год назад

      i also have the same doubt...

  • @saurabhkailashchandrapuran8609
    @saurabhkailashchandrapuran8609 3 года назад

    Navin sir it is very difficult to see your video from mob ..plz increase font size of IDE in future video can help us.

  • @zaaboulla82
    @zaaboulla82 3 года назад

    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 ?

    • @nikku1409
      @nikku1409 3 года назад +1

      I have the same question.. how it's working with just using JPA?

  • @divyamahesh9032
    @divyamahesh9032 2 года назад

    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..

  • @rutujagurnule9989
    @rutujagurnule9989 3 года назад

    plz make tutorial video on jpql

  • @yogeshwaranc8785
    @yogeshwaranc8785 3 года назад

    Extremely Good bro. I learn lot from you. I got better offer. Thanks so much.

  • @unemployedcse3514
    @unemployedcse3514 7 месяцев назад

    awesome ❤

  • @intino9
    @intino9 2 года назад

    Thank you !! Also thank you for sharing the repo. Appreciate it !!

  • @vigneshk3727
    @vigneshk3727 3 года назад

    What is the difference between hibernate.cfg.xml and then this persistence.xml ?

  • @sintu6039
    @sintu6039 4 года назад

    Ibatis has not implement JPA specification right? So its not that easy to change from hibernate to ibatis?

  • @KunalSharma-ki8rd
    @KunalSharma-ki8rd 3 года назад

    What if In our Alien class we have different variable name what we have in the database column name?

  • @KathaleenKalisch-b9t
    @KathaleenKalisch-b9t 22 дня назад

    McCullough Station

  • @_ravi_kumar_gupta
    @_ravi_kumar_gupta 6 лет назад +2

    Sir great video can u please upload complete jpa along with spring boot and how to customized the query

  • @saranmuruga8416
    @saranmuruga8416 5 лет назад

    sir how to develop own web application ,i learn spring mvc ,hibernate ,jpa,jersey.can you teach to develop web application using these

  • @MarioSilva-ce6us
    @MarioSilva-ce6us 5 лет назад

    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

  • @JuanitaLane-i7l
    @JuanitaLane-i7l 6 дней назад

    Keeling Orchard

  • @WilliamGose-y5e
    @WilliamGose-y5e 6 дней назад

    Gulgowski Trail

  •  5 лет назад

    Very good videos, I'd suggest that you use a mic, the sound is not as good as it should be

  • @QuillerLynn
    @QuillerLynn 29 дней назад

    743 Langosh Fords

  • @hello-ff8hh
    @hello-ff8hh 2 года назад

    just amazing explanation!

  • @andysalic8065
    @andysalic8065 5 лет назад

    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.

  • @architadas1659
    @architadas1659 2 года назад

    Nice Explanation

  • @semilife
    @semilife 8 месяцев назад

    Thanks Navin for the quick JPA overview.

  • @CourtneySorensen-e5n
    @CourtneySorensen-e5n 22 дня назад

    Thompson Crescent

  • @vidyprakash
    @vidyprakash 6 лет назад +1

    Simply super. the way you explain the concepts. Thank you.

  • @psawyer871
    @psawyer871 4 года назад

    you are fantastic! almost hitting 1M subscribers, cool!! :)