#22 Project using Spring | Loading data in H2

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 46

  • @pranaypaul6361
    @pranaypaul6361 5 місяців тому +9

    H2 is so so convincible for any quick test purpose!! great explanation bit by bit!!

    • @Devivl
      @Devivl 4 місяці тому

      I agree. Testcontainers are also a great option for testing. If you haven't studied it before, I recommend it. Good luck, friend!

  • @Devivl
    @Devivl 4 місяці тому +1

    I like that you break up a big project into lots of short videos.
    This way the material is digested much better and it's easier to navigate through the lesson topic.
    Thank you. Great lessons from a genius teacher.

  • @lootster
    @lootster 3 місяці тому

    00:04 Creating method to return list of products
    01:30 Creating service layer and annotation in Spring
    02:57 Creating object of repository and extending JPA repository
    04:25 Adding data in H2 database
    05:50 Troubleshooting data loading issues in H2 database.
    07:17 Using generated value annotation for autogeneration
    08:54 H2 temporary database causes data loss on application restart.
    10:22 Delay data source initialization in Spring using spring.jpa.defer-data-source-initialization

  • @user-cd8cg3yr1q
    @user-cd8cg3yr1q 5 місяців тому +2

    nice way of teaching things thank you sir

  • @jairramirez6900
    @jairramirez6900 5 місяців тому +2

    I've never used H2 before, tho it's cool to learn a new tool

  • @tysontyson2616
    @tysontyson2616 Місяць тому +1

    Very Good Explanation Thanks!

  • @VivekKumar-fm2lv
    @VivekKumar-fm2lv 5 місяців тому +2

    Waiting for next video of this series

  • @gajeshtripathi5721
    @gajeshtripathi5721 11 днів тому

    I am a big fan of you! I especially appreciated Navin Reddy's honesty while teaching. Are you providing the source code for this beginner course? Also, could you recommend any live web project-based courses that cover React and Java Spring Boot?

  • @NandinerdeneMandakh
    @NandinerdeneMandakh 3 місяці тому

    Looking forward to the next lessons!

  • @Unknown373d
    @Unknown373d 4 місяці тому +12

    insert into product (name, desc, brand, price, relese_Date, available, quantity) VALUES
    ('tata nexon', 'features and performance', 'TaTa Motors', 750000.99, '2024-01-15', true, 45),
    ('Renault Kwid', 'fuel efficiency and reliable', 'Renault Motors', 500000.00, '2018-02-01', false, 100);

    • @bheegkhs
      @bheegkhs 4 місяці тому

      Hello, Could you share queries that in explanation please❤

    • @MohammedThayyabAR
      @MohammedThayyabAR 4 місяці тому

      thank u

  • @RishavKumar-py1ns
    @RishavKumar-py1ns 2 місяці тому

    Thanks sir, the course is very good

  • @rebbagopi
    @rebbagopi 5 місяців тому +1

    Waiting for next video...

  • @skia515
    @skia515 2 місяці тому

    I'm sure you can use H2 file format data base, with file database you will not losing data every run application

  • @AjayKumar-go4jr
    @AjayKumar-go4jr 3 місяці тому

    Nice Content!

  • @seethavijaya5665
    @seethavijaya5665 3 місяці тому +2

    Iam able to see the data in H2 but not able to see in the browser and postman. It's showing {} for how many products data i have entered could anyone please Help and i'm using Eclipse

    • @iulia6579
      @iulia6579 3 місяці тому +3

      I had the same problem so I decided not to use lombok: I generated constructor + getters & setters in Product class and now it works

    • @seethavijaya5665
      @seethavijaya5665 3 місяці тому

      ​@@iulia6579 Thank you so much 😊

  • @jaswanthjassu4389
    @jaswanthjassu4389 Місяць тому

    after completion of output in h2 console database , how did you get the browser exactly , i am not getting it

  • @naraynwetal6544
    @naraynwetal6544 4 місяці тому

    Excellent

  • @turabbajeer
    @turabbajeer 16 днів тому +3

    Here is the SQL Query:
    INSERT INTO product (name, desc, brand, price, category, release_date, aPRODUCT AVAILABLE AVAILABLE AVAILABLE vailable, quantity)
    VALUES ('Tata Nexon', 'A compact SUV with excellent safety features and performance.', 'Tata Motors', 750000.00, 'Cars', '2024-01-15', true, 50),
    ('Maruti Suzuki Swift', 'A popular hatchback known for its fuel efficiency and reliability.', 'Maruti Suzuki', 550000.00, 'Cars', '2024-02-01', true, 100),
    ('Hyundai Creta', 'A stylish SUV with advanced features and comfortable interior.', 'Hyundai', 950000.00, 'Cars', '2024-03-01', true, 75),
    ('Mahindra Thar', 'A rugged off-road SUV with a powerful engine and modern amenities.', 'Mahindra', 1200000.00, 'Cars', '2024-04-01', true, 30);

  • @CodeProWhite
    @CodeProWhite 5 місяців тому

    waiting for the next video

  • @matrix2003-o6n
    @matrix2003-o6n 2 місяці тому

    sir, how to connect mysql workbench and intellij database? I want to use MySQL instead of H2

  • @sreejeetadutta4478
    @sreejeetadutta4478 3 місяці тому +1

    .sql files are not supported in community edition

  • @sharantheja
    @sharantheja 4 місяці тому +1

    why releaseDate is getting changed to release_date ?

    • @Gaurav-Telusko
      @Gaurav-Telusko 4 місяці тому

      Spring Boot, JPA, and Hibernate automatically convert camel case in your Java class to snake case in the database. So, releaseDate in your Product class becomes release_date in the database.

  • @anonymouCodePlay
    @anonymouCodePlay 5 місяців тому

    Sir I connected using simple html css and js

  • @fikayomiemmanuel2674
    @fikayomiemmanuel2674 5 місяців тому

    Pls how can i chat with you sir

  • @darshandeshbhandari-8098
    @darshandeshbhandari-8098 5 місяців тому

    In eclipse lombok is not working 😢

    • @Gaurav-Telusko
      @Gaurav-Telusko 4 місяці тому

      please configure your lombok properly.

    • @Gaurav-Telusko
      @Gaurav-Telusko 4 місяці тому

      and if it is configured properly, please share the error you are facing?

  • @AkashKumar10134
    @AkashKumar10134 3 місяці тому

    the lombok is not working i tried it with getters and setter it worked

  • @lokeshkumarkondeti4312
    @lokeshkumarkondeti4312 2 місяці тому

    While practicing it I mistakenly typed String for the id and at first it executed well, later when we added the annotation to generate id automatically then it started giving error. At this time I didn't know why I am getting error, it took hell of time for me to find it 😅😅😅 then I was like 😑😑😁

  • @baluchitturi837
    @baluchitturi837 5 місяців тому

    First here❤

  • @AngusMayer-i6w
    @AngusMayer-i6w 5 місяців тому +1

    Bro, how many playlists do you have on java spring, every playlist on your channel says java, yet you are starting new series. Why repeat new series if one is already present in your channel?

    • @Telusko
      @Telusko  5 місяців тому +6

      Versions

  • @PolytechnicManualAnswer13
    @PolytechnicManualAnswer13 5 місяців тому +1

    spring.jpa.defer-datasource-initialization=true uses this the errors has not gone it shows the same error please help
    how to solve it

    • @maheshmahi9307
      @maheshmahi9307 4 місяці тому +1

      Any solution? :(

    • @Gaurav-Telusko
      @Gaurav-Telusko 4 місяці тому +1

      what is the error you are facing? could you please share the error?

    • @Gaurav-Telusko
      @Gaurav-Telusko 4 місяці тому

      @@maheshmahi9307 could you please share your application.properties code.

    • @maheshmahi9307
      @maheshmahi9307 4 місяці тому

      @@Gaurav-Telusko Got it !! May be just naming difference in the form of 'description' for 'desc' in repo file