Hibernate Interview Questions and Answers in Java with examples PART -1[ MOST ASKED] Code Decode

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

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

  • @sachinparmar8406
    @sachinparmar8406 Год назад +12

    These were These were exactly the questions asked to me for CG.
    the questions asked to me .

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

      Thanks for letting others too know Sachin. It will help community to grow and clear rounds 🙏 means a lot

  • @sanskritinannore7209
    @sanskritinannore7209 5 месяцев назад +2

    Great video, one thing I would like to point out is that we should close the session object first and then close the factory instance. So in the code at 6:45 it should be
    session.close();
    factory.close();
    Closing the Session first ensures that the resources (like connections) it uses are properly released back to the pool managed by the SessionFactory and we don't run into any other issues since session uses the instance of session factory for its operations.

  • @karthickkumar4150
    @karthickkumar4150 4 года назад +9

    Thank you. Now I understand the basic level of hibernate functionality..you are doing a great job...thanks a lot ...

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

      Thanks for the nice words. M glad it's helpful. :)

  • @dilseind977
    @dilseind977 Год назад +3

    Thank you. Now I understand the basic level of hibernate functionality.Great video, THANK YOU A LOT

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

      😊👍👍. Glad to be helpful 😊

  • @sanjaydhikodi7516
    @sanjaydhikodi7516 3 года назад +8

    Thank you so much for explaining everything in brief and detailed way, with springboot and JPA these alll concepts has been abstracted and it is difficult to get this kind of explaination on hibernate.....Everything is perfect......I have watched your java8 video and its amazing,It has boosted my confidence to next level on java 8.......Thank you so much .Plz keep uploading 😊✌

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

      Sure Sanjay. Thanks for the nice words. It motivates us to put more input to the channel 🙂👍

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

    Best channel for interview preparation ,no matter how experience u are

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

      Thanks Nil . This means a lot 🙏🙂👍👍

  • @blackstallion7680
    @blackstallion7680 3 года назад +22

    These were exactly the questions asked to me for CG.

    • @CodeDecode
      @CodeDecode  3 года назад +6

      Been there done that :) thanks for sharing your experience Black Stallion 😊

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

      @@CodeDecode thank you for explaining with code that is extremely helpful. Please keep making more interview prep videos !!!

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

      Sure 😊 Thanks 👍👍

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

      Did they ask you to implement the architecture with code example?

  • @kirtipatil4629
    @kirtipatil4629 2 месяца назад

    Simply u r amazing ma'am.. and way u r teaching is incredible. Great job ur doing.. 👍

  • @snehalwagh007
    @snehalwagh007 2 года назад +2

    Best of best.useful..very easy way !

  • @mohammadwaseem8824
    @mohammadwaseem8824 6 месяцев назад

    Sab se bahtareen video RUclips par for interview preparation 👍

  • @Thakur_Bhupendar_Singh_Khetwal
    @Thakur_Bhupendar_Singh_Khetwal 8 месяцев назад +1

    great content mam🙏

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

    It's very helpful. Thank you for making this video.

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

      Thanks Sharad 👍👍

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

    What a great video

  • @saktisamantaray4338
    @saktisamantaray4338 Год назад +1

    your way of explanation I fell OSM pure bit by bit understanding carry on

  • @chetankhatal716
    @chetankhatal716 Год назад +3

    Good video thanks

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

    Dear Code Decode, You are the best !

  • @HaniDaddy
    @HaniDaddy 3 года назад +4

    Please do a video on most asked SQL interview questions as well it will help people preparing for full stack developer role

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

    Thank you, You are doing a great job explaining in simple ways. Please add second part too.

  • @gyanprakash302
    @gyanprakash302 2 года назад +8

    Can you please make a series of SERVLET and JSP interview Questions also? It would be really helpful for us.

    • @VIJAYMAMORIA-c8m
      @VIJAYMAMORIA-c8m 2 месяца назад

      Who is asking you servlet jsp in the era of spring boot?

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

    Thanks for the video

  • @karthikeyanmuthusamy2098
    @karthikeyanmuthusamy2098 3 года назад +3

    Thanks for great video
    Please let us know the Hibernate version you followed for this content.

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

    SUPER 💗 AWESOME EXPLANATION ✨✨✨⭐

  • @ramprasath4788
    @ramprasath4788 Год назад +1

    Videos is Too Good.. i am making the notes of your every slides...

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

    Useful

  • @anuhyabolla7891
    @anuhyabolla7891 4 месяца назад +1

    Your content is very helpful to us
    Can you please upload live demo video on ehcache

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

    This is really very very useful video. 🙏

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

      Thanks for the nice words priya

  • @amansheikh1801
    @amansheikh1801 Год назад +1

    Good work CodeDecode Team. keep it up.

  • @shivamjaiswal829
    @shivamjaiswal829 2 года назад +2

    You are amazing

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

    Please do practicle session on it...it will be more helpful.....u are doing good job ..thanks

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

      ruclips.net/p/PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q

  • @lightningcouldstrikee1403
    @lightningcouldstrikee1403 4 года назад +3

    Please create video for Spring Interview Questions as well ,and for Hibernate & Exceptions as well for intermediate & advanced level.

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

      Sure will make videos on them soon

  • @JavaHubGlobal
    @JavaHubGlobal 2 года назад +2

    Madam jpa is common implementation of most of orm framework

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

      JPA is not implementation, JPA is specifications Vikas. Hibernate , EclipseLink and Apache OpenJPA are the implementations.

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

    Thank you

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

      You are welcome bhemesh.....

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

    Thanks for video, Able to recall the concepts. Please do a video on cascading concept demo

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

      sure we will create it soon

  • @thejavatechnology4163
    @thejavatechnology4163 Год назад +1

    Great explanation

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

    Excellent work. Keep it up.

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

    Thank You So much....Please upload live demo on EH Cache usage....Thank You!👌👌👌

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

    Very nice explanation

  • @Spirtual-Motivational-Politics
    @Spirtual-Motivational-Politics 2 года назад

    excellent video .. thank thank thank you so much...

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

    very good stuff thanks Code Decode

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

      You're welcome Sachin......

  • @manoharsitaram3300
    @manoharsitaram3300 4 года назад +5

    Hi team Code Decode, may i know these questions are sufficient enough for a person having 3 to 4 years experience

    • @CodeDecode
      @CodeDecode  4 года назад +5

      It's part one. These are frequently asked questions that tests your base knowledge. Hibernate is a very indepth topic which I can cover in parts. So it's just the first part and Yes it will help you to answer the questions if interviewer try to know if you have ever worked on it or you have just bookish knowledge.

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

    Nice video.. thanks.. please create another video also.

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

      These are part 1 and 2
      Hibernate Interview Questions Java: ruclips.net/p/PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q

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

    Thanks for your efforts...

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

      You're welcome

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

      @@CodeDecode Attended 2 interviews, I got selected... Really it's possible only bcz of you.. very very Thankful to you.

  • @spiderweb5747
    @spiderweb5747 4 года назад +3

    Thanks for uploading this video, it is very helpful and your explanation made it easy to understand the concepts.

  • @kshitizkamaljain8233
    @kshitizkamaljain8233 3 года назад +3

    We need high level questions and live demo

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

    amazing lecture

  • @devidasdixit3163
    @devidasdixit3163 2 года назад +2

    Hi
    Could you please give live demo hibernate 2nd level cache

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

      Sure Devidas we will do that soon 👍🙂

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

    All the concepts explanations were really wonderful. Could learn in-depth about each and every concepts. Really Thanks a lot.
    Only concern is formation of playlist. videos from all the topics were repeated in each playlist. It's quite confusing and difficult to maintain with the flow. Please segregate the videos based on Languages and put it in the playlist for easy flow.

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

      Yes, we understand the playlist is not at all in place. We will try to arrange it as soon as possible. Thanks for the suggestion, we will let you know once we have arranged them.

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

    Awsmm content.. Keep up good work!!!!

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

    Very good explanation 😀👌

  • @GauravSharma-up9gs
    @GauravSharma-up9gs 2 года назад +2

    Hi Thanks for this Video.
    Can you also make a project video on Hibernate with every kind of mapping explain to simplify everything ?

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

      Sure Gaurav, we are planning to put seperatw video on annotations soon 👍

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

    Yes it was helpful also give more practical orientations on this

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

      Sure. It's in parts 2.

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

      Here you go
      ruclips.net/p/PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q

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

    Thanks for the in-depth analysis. By far the best simplified explaination video on youtube for Hibernate.
    One doubt, If i am using Hibernate configuration java class & using annotations(@Entity, @Table, @id,@Column) for the java POJO class and fileds.
    Do i need to create the Java POJO xml mapping class separately ?

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

      No you don't. Bcz with xml u create bean @entity creates bean only. So no

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

    Thank you for the video. Can you please provide higher/experienced level questions too.

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

      Sure will make part 2 soon

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

      ruclips.net/video/b3drcKdA2zg/видео.html second part is up now

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

    Please upload a vedio regarding REST web services your explanation is too good and clear. Great job. I got a clear idea of collection's and difference between them from your vedio.

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

    V well explained, great work 👍

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

    Great video, please provide part 2 also and also explain why different level if cache needed and when. Thank you

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

      This is part 2
      ruclips.net/video/b3drcKdA2zg/видео.html

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

    amazing content

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

    excellent thank you

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

    What is hibernate mapping file? (While watching answer to this question I got few questions)
    Well! Do we really still use XML based configuration file in real world application?
    is Hibernate mapping using XML file is outdated?
    Annotation based mapping is mostly preferred in real world application right?
    barring that your way of explaining concept is simple and easy to understand
    I think it would have been better if annotation based mapping is also mentioned along with XML based

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

      ruclips.net/p/PLyHJZXNdCXsdXxY8wupiLenux2Yafn1lN

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

      Here we have used annotations based only 👍👍

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

      And in hibernate series, we have covered one question where all annotations are explained

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

      @@CodeDecode Thanks! For this link.. you are doing great job

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

      Thanks Gokul 👍👍🙂🙂

  • @kunjooshareesh2474
    @kunjooshareesh2474 Год назад +2

    Lazy vs eager can u pls explain mam

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

    Thanks for the video it was a quick and good brush up of hibernate..but i think some topics are still left like making custom 2nd level cache and criteria and restriction ...so can you please make a part two of this. May be for more experienced level.

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

      Yes I will make part 2 of this video. Time limit was exceeding hence couldn't cover complete hibernate. Will create another part soon

    • @chandakumari-xw7hh
      @chandakumari-xw7hh 3 года назад

      @@CodeDecode aa

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

    Nice explanation

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

    Thanks for video. Any videos on annotation based?

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

      We are planning to upload that soon 👍🙂

  • @premamalar8550
    @premamalar8550 2 года назад +2

    Mam... Yes again me in this video😜I know u r familiar with my id... In this context mean what mam??? Please even it may silly question.... 🙏

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

      Hey Prema. Yes we do remember you. Can u please share the time line in the video from where yourr question arised.

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

      @@CodeDecode 21.07.. Getcurrentsession

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

    Hi, Hibernate and JPA differs only in configuration is it? Hibernate uses Hibernate.cfg.xml file for getting credentials to establish a connection to db. But JPA uses application.properties file to achieve the connection establishment right? Could you please also say how both are differing? Hibernate vs JPA.

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

      Hibernate is implementation of jpa.
      Jpa is just a standard, hibernate has orm / jpa implementations

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

      @@CodeDecode Got it! Thanks a lot! You're really doing an amazing thing... All the topics are really very clear and easily understandable! Please keep it up!!!

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

      @@Preethipree1 thanks Preethi 🙂👍. This motivates us to create more videos. Thanks 🙏

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

    Please create video for Spring Interview Questions as well.

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

      Sure. Next I will pick spring.

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

      @@CodeDecode you're the best :)

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

      @@CodeDecode yes please,have been waiting!!!

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

    Thank you so much mam.

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

    hi this video is really good,could you please make a video on JPA

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

      Sure jona, we will post video on JPA soon 🙂👍

  • @arvindpandey8793
    @arvindpandey8793 Год назад +1

    Nice

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

    amazing video

  • @manindersingh6371
    @manindersingh6371 2 года назад +2

    Thanks!

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

    All are ur playlists are in different places can u make hibernate series as in one play list all things like it if possible .video on restapi angularjs can u upload

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

      Sure Chaitu, we will rearrange them

  • @VishalPawar-or2dr
    @VishalPawar-or2dr 4 года назад +1

    Good work!!

  • @megharao9478
    @megharao9478 Год назад +1

    Hello Mam, Can you please make a video on save, persist, update and merge.

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

    Thanks a lot ❤

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

    Videos are awesome 👌 Thank you...!!!
    Can you add the same for microservices, mysql, kubernetes and cloud because these are not actually available on RUclips.

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

      Sure we will take our spring boot series to that level soon 👍👍

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

      @@CodeDecode waiting for it and also please add related to mysql which is mainly not found on RUclips.

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw Год назад

    part 2 we want

  • @FatimaShaikh-ck3cw
    @FatimaShaikh-ck3cw 10 месяцев назад +1

    Can you please create mapping example with code . likes one to one , many to many

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

    Hello ma'am , tutorials are very good and informative. Step by step instructions and easy to understand. I hope you'll make advance interview questions for hibernate. As well as if you make video's on spring boot, JPA and REST APIs, it'll be much more appreciated.
    Thank you.

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

      Spring boot interview questions are lined up next. You will soon see all these videos. Thanks for the nice words and nice suggestions 😊 👍

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

      ruclips.net/video/b3drcKdA2zg/видео.html second part is up now

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

    Mam instead of metadata it should be configuration class .metadata is an interface.

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

    Nice initiative, would you please make a video on sring-boot and spring.

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

    Thanks 👍

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

    Can you please create second level cache complete example video

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

      Sure Kapil. Wr will do that soon 👍

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

    HI Team, could you please make a video on 2nd level cache, here i have doubt,data in the cache, if some one update the data from back end what is the happends at cache,could you please explain about it, plz correct me if i was wrong

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

      Sure Venkat. We will do that👍🙂

  • @Manish-py3jc
    @Manish-py3jc 2 года назад +1

    Is these questions are asked in spring boot interview?? I mean in so depth not basic

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

    Madam what kind of questions the interviewer may ask for fresher?

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

    Please explain with code examples as well.

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

      In part 2 I will do that

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

    When using annotations table and pojo mappings are already done ... then is it necessary
    to hibernate mapping file? 17:00

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

      No it's not Bhaskar. Its interview question series . It's just one question that interviewer may ask you 👍🙃

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

    Could you please cover N+1 problem in some video

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

    Can u please upload videos on JSP, Servlets also

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

      Sure will upload that too

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

    Can you create a demo for second level cache

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw Год назад

    Hi, give live demo plz

  • @sumit.upadhyay
    @sumit.upadhyay 4 года назад +2

    Any link for part 2 of video?

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

      Creating soon 👍

    • @sumit.upadhyay
      @sumit.upadhyay 4 года назад +1

      @@CodeDecode Thanks ❤️, eagerly waiting for it.

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

      ruclips.net/video/b3drcKdA2zg/видео.html second part is up now

    • @sumit.upadhyay
      @sumit.upadhyay 3 года назад +2

      @@CodeDecode Thanks much !!!

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

    The way you pronounce "mapping" is cute ☺️

  • @atharansari9945
    @atharansari9945 6 месяцев назад

    3 rd tike watching this videos

  • @harishsingh2451
    @harishsingh2451 7 месяцев назад +1

    I am unemployed I don't b have any boss when I get the job then definately some one assign as a boss for me.

    • @tamilthriller
      @tamilthriller 6 месяцев назад

      Okay ... That's the regular thing . 😅

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

    Please upload more queastions

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

    Can you share pdf or website also which has all this ?

  • @SsSs-qz7lt
    @SsSs-qz7lt 2 года назад

    Can u provide pdf of all interview question answer

  • @VikashKumar-tz1zx
    @VikashKumar-tz1zx Год назад +1

    Can I get pdf file of this question

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

      Hey Vikas , Every thing we discussed is given in description bar 👇. You need any thing else?

    • @VikashKumar-tz1zx
      @VikashKumar-tz1zx Год назад +1

      Actually I need questions with answers in pdf format so easy for remembering

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

      Ohh. Correct Vikash. Just that below each slides we have lots of blogs,sites etc that it will give us copyright issues. Which in turn will bring whole video down . Hence we don't share ppts. Very sorry Man. Any other help we can do for you?