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.
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
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?
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
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);
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.
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 😑😑😁
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?
H2 is so so convincible for any quick test purpose!! great explanation bit by bit!!
I agree. Testcontainers are also a great option for testing. If you haven't studied it before, I recommend it. Good luck, friend!
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.
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
nice way of teaching things thank you sir
I've never used H2 before, tho it's cool to learn a new tool
Very Good Explanation Thanks!
Waiting for next video of this series
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?
Looking forward to the next lessons!
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);
Hello, Could you share queries that in explanation please❤
thank u
Thanks sir, the course is very good
Waiting for next video...
I'm sure you can use H2 file format data base, with file database you will not losing data every run application
Nice Content!
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
I had the same problem so I decided not to use lombok: I generated constructor + getters & setters in Product class and now it works
@@iulia6579 Thank you so much 😊
after completion of output in h2 console database , how did you get the browser exactly , i am not getting it
Excellent
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);
waiting for the next video
sir, how to connect mysql workbench and intellij database? I want to use MySQL instead of H2
.sql files are not supported in community edition
Even I'm facing the same issue.
How to solve it?
No,it works well
why releaseDate is getting changed to release_date ?
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.
Sir I connected using simple html css and js
Pls how can i chat with you sir
In eclipse lombok is not working 😢
please configure your lombok properly.
and if it is configured properly, please share the error you are facing?
the lombok is not working i tried it with getters and setter it worked
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 😑😑😁
First here❤
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?
Versions
spring.jpa.defer-datasource-initialization=true uses this the errors has not gone it shows the same error please help
how to solve it
Any solution? :(
what is the error you are facing? could you please share the error?
@@maheshmahi9307 could you please share your application.properties code.
@@Gaurav-Telusko Got it !! May be just naming difference in the form of 'description' for 'desc' in repo file