#19 Spring Data JPA with JpaRepository

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

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

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

    00:04 Creating repository layer for data access
    01:29 Interface for defining methods with JpaRepository in Spring Data JPA.
    02:46 Using JpaRepository methods in Spring Data JPA
    04:06 JpaRepository extends Repository with additional methods.
    05:29 Spring Data JPA uses save method for both saving and updating data
    06:53 Every table needs a primary key, mention it as ID for entity identification
    08:23 Spring Data JPA generates SQL queries behind the scenes
    09:50 Demonstration of querying and configuring H2 database in Spring Data JPA

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

  • @gouthamrajesh2745
    @gouthamrajesh2745 5 месяцев назад +10

    If tables are not creating automatically in postgres or anyother db.
    Without configuring spring.jpa.hibernate.ddl-auto=update,Hibernate will not automatically handle the creation or updating of database tables based on your entity classes.
    In the case of H2, the tables are created automatically due to Spring Boot's embedded database-friendly defaults. However, with PostgreSQL, you need to be more explicit in configuring how the schema should be managed to avoid unintended consequences in a production environment.

  • @VaibhavVijayvargiya1994
    @VaibhavVijayvargiya1994 Месяц назад +1

    You have explained the entire spring data JPA like it is nothing, explained in way too simpler words.
    Thank you so much. it will help me for sure.

  • @globaleducationalhub2019
    @globaleducationalhub2019 2 месяца назад +1

    Informative and very useful for me as a beginner. Thank you so much Navin and team

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

    This playlist is very good... you are explaining the things in very good example and it's more understanding for me. playlist is going very intresting. looking ahead for more videos

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

    This content is pure gold

  • @user-cd8cg3yr1q
    @user-cd8cg3yr1q 6 месяцев назад

    simply amazing , great video and great way of explaining things . Thanks

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

    basics of spring data JPA boils down!!!

  • @naraynwetal6544
    @naraynwetal6544 5 месяцев назад

    Learning Spring Boot is as enjoyable as diving into your favorite hobby.

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

    Crazzzy man
    how good it is

  • @teoynwa6405
    @teoynwa6405 20 дней назад

    Greate tutor, love him

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

    I'm surprised this is so much simpler than Entity Framework

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

    what the... i actually get the topic. Too much time wasted to understand the logic and finally, beacuse of this video. Thank you

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

    Hello Sir, Could you explain transactional and propagation- isolation? At what cases or conditions each of them to be used

  • @cheguevara1396
    @cheguevara1396 5 месяцев назад

    Good explaination sir,,like you say u dony teach but educate the aliens

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

    can u pleease give us video on how we configure swagger for ducumentation of our API

  • @YouTubekunal43
    @YouTubekunal43 26 дней назад

    Nice explanation

  • @Devivl
    @Devivl 5 месяцев назад

    Learning Spring Boot with mr. Navin Reddy is as enjoyable as diving into your favorite hobby 🤓

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

    Well Explained Sir

  • @naraynwetal6544
    @naraynwetal6544 5 месяцев назад

    Enjoying series

  • @lokeshkumarkondeti4312
    @lokeshkumarkondeti4312 3 месяца назад

    Are we gonna get the details of queries in the console only when we executed them with Postman? Because currently I don't have a postman and I am executing queries from the H2 console but I couldn't see the log in console/terminal.

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

    Boom
    maza aa gya

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

    For production, how should we hide the username and password for security.

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

      pw should be a random generated string with special characters. this version should be hashed and the hashed version should be stored in environment variables, you can use helm charts for this.
      only the app and the admin should be able to convert the hashed pw back to the original, the dev shoukd never use it.
      if you commit the pw or the hashed version to git, you need to change it.

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

    What if you want to pass two object like JpaRepository

  • @mishmay9
    @mishmay9 23 дня назад

    After running the program the table is not created. How do it fix it?

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

    Hello sir, this video is great! I have a question: In Postman, we're sending data using POST, and I can see it in the H2 console. However, when we reload the server, the data disappears, and we have to enter it again each time. Is there a way to store it permanently?

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

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

    Great work

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

    Beautiful

  • @Alcatraz-23
    @Alcatraz-23 7 месяцев назад

    Brilliant!

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

    if i give id=0 in postman for delete opertion it is not product deleted .deleteById(id) method not work for id=0

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

    the data in the database is gone after restarting the application

  • @AjayKumar-go4jr
    @AjayKumar-go4jr 5 месяцев назад

    Nice content!

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

    Thanks

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

    Thank you for the video.

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

    cant able to extend JpaRepository

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

    Hey, where is the source code for all these videos?

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

    Thank you sir

  • @shaurya2608
    @shaurya2608 2 месяца назад +1

    I dont think logic of updateProduct is correct.

  • @DeepCoderMK
    @DeepCoderMK 11 дней назад

    Thank you

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

    Thank you

  • @nimish1012
    @nimish1012 День назад

    Thanks!

  • @naraynwetal6544
    @naraynwetal6544 5 месяцев назад

    excellent

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

    Hello. how can i open H2 from browser ?

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

  • @vinayKumar-vq6gy
    @vinayKumar-vq6gy 7 месяцев назад

    Awsome

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

    thank

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

    Good

  • @smyansingh4552
    @smyansingh4552 5 месяцев назад

    My server is not taking the value of the primary key i.e. prodId. No matter what value I put it always shows up as zero which prevents me from adding more entries. Can anyone help?

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

      Wrong user name or password [28000-224] 28000/28000 (Help)

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

      I also encountered this problem. What i did to solve it was to annotate my id field variable with "@JsonProperty("id")" . And it worked

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

    ❤❤❤❤❤❤

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

    🎉

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

    The information on adding JPA and embedded H2 to Maven is missing. The configuration of H2 in application.properties is missing. How Springboot creates the table "PRODUCT" in H2 from Hibernate is missing. The previous lectures have been great but this one is not good.

  • @JonahVincent-g7d
    @JonahVincent-g7d 4 месяца назад

    8106 Allen Station

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

      Wrong user name or password [28000-224] 28000/28000 (Help)