Every line was point to point . One who knows basics of java can easily understand through this video. Thanks, very useful. I tried to post and get data but it's doesn't work. after debugging I realized that the Lombok doesn't provide a getter and setter for the class. when I added it manually (get, set) everything works well!
I am a big fan of videos uploaded by Ramesh fadatare, his approach in explanation with lots of patience, consistency in explanation, perseverance till he reaches the last bit of the API. Thank you sir! You are a blessing to the Java Development world.
For those who're getting nullPointerException and null values in database despite successful POST request, it can be sorted simply by replacing @Data annotation from model class with usual getters, setters.
been through countless udemy videos. Stopped learning spring boot as I felt it is way more complicated than nodejs backend dev, but this video is an absolute charm! Worked like magic. Second day and I am creating api's already!
bro I'm just starting out with Java Backend, will it be fine if I directly start with microservices and springboot. I've already strong knowledge of Java.
highly resourceful and knowledgeable, it definitely comes in handy to start a new spring boot application with good project structure and hibernate JPA
Thanks, very useful. I tried to post and get data but it's doesn't work. after debugging I realized that the Lombok doesn't provide a getter and setter for the class. when I added it manually (get, set) everything works well!
Lombok does provide getters and setters. I was facing the same issue with intellij IDE. I had to enable 'Annotations preprocessing' and also install Lombok plugin in order to access the getters and setters during compile time. Hope this helps if you are using intellij
Even I faced the issue with Lombok. Then I added getter , setters to java code by right click->generate getters and setters, Also to be able to debug I modified the header in postman to content-type:application/json/ One of them helped to create and save records to database
Thank you soo much it worked for me. I saw many videos but every time struck somewhere in the code with errors. I am soo happy now that it successfully executed.
Only One thing need to say. I Love your way of teaching :) Good 1.27 hours of learning from you. lastly you forgot to show the custom exception throw. I was waiting to see it.
Hi Ramesh, Great going tutorial.... I have one question as for hibernate whenever we initiate any operation we need to create Session factory / session objects.. But here as we are using hibernate with spring boot why session factory is not created. Is it managed by spring boot internally and if it's not then could you please guide here... Thanks in advance Thanks
Sir please answer me : Does this project have Entity, Repository, Services, and Controller layers an at least one file in each one. The logic is up to you, but you need the have basic CRUD end points in your controller ?
Such a nice video to learn and you have explained it very easy way too. But I faced one issue while following your steps and unable to fix it. In postman i am getting an unsupported media error. Even when i have selected JSON, even tried with content-type = application/json. I am using java 8 and the highest stable version of spring boot and mysql. if you can suggest me the fix, that will be very helpful. code I have copied from your git. so all are the same, except pom (versions)
Thank you so much Sir... 🙏🙏 Learning a lot from your videos. ❤️❤️ Kindly help me with it - Like I write code, commit it to svn (or git), Now build with jenkins And the jenkins will deploy it to the local server. Is this possible to learn without using AWS etc at local setup ?
Hi sir, Thank you for making this video but I have query that how can I enter values in between like if I delete Id=2 then how can enter a value of 2 again later.
@Data annotation should work as a replacement for generating all the getters and setters. But for me the annotation is not working. I had to generate all the getters and setters manually. Otherwise whenever I am hitting the url with the json data no data is coming in to the controller.
When i had run the application and when i had inserted the values into database through post method in postman, I'm getting internal server error - 500. I can't get the values in database. Help me out
Sir my question how to do this using online mysql and if i want to save pictures to db for my android java app is is better saving photos to hosting(save the url in db) or to database?Please answer to my question,appreciated
sir, a basic question....why did you make an implementation class of service interface? Like we can make a service class and create API methods ...I want to know the reason.Kindly reply .
In spring-based applications, we use dependency injection right, and to maintain the dependencies loosely coupled we typically use interfaces. It's always a good practice to use interfaces so that we can replace the implementations easily.
sir i have doubt if we have more than one entity classes like Employee,address,experience,contactdetials how we need to develope Rest Api sir. we need to create repository for every entity classes ah sir. and also i have one more doubt we need to create service and controller classes for every entitiy classes ah sir.
Hello sir, thanks for this amazing video but can you please help me know how can I use JSP pages.. and call data their. A little hint can help to build my project. Please help.
For JSP, you need to create a Spring MVC web application. Check out my blog post at www.javaguides.net/2019/08/spring-boot-web-application-with-jsp-crud-example-tutorial.html
Does anyone know why I got this error for the POST API? "not-null property references a null or transient value : com.example.springbootdemo.model.Employee.firstName" . I don't how to debug it
I have the same issue, with fadi Mashan explanation, I understood that Lombok didn't work. So I just did Source -> Generate Getter & Setter and it works.
postman is sending the post http request to db without any error but mysql is not showing me data .i had used with and without lombok but nothing is working any suggestion
But this is Spring Data JPA and not Hibernate right ? I know Spring Data JPA uses Hibernate internally to do all operations but it cannot be considered pure Hibernate right ?
@@RameshFadatare So this is what's confusing me, During an interview a guy asked me if I have worked on Hibernate, I said I have worked with Spring data JPA, so the guy said but we're only using Hibernate in our product. Does that guy not understand that Spring Data JPA is also hibernate or am I missing something here ?
@@ShinAkuma spring data jpa is not a hibernate, it is library developed on top of jpa. Watch my hibernate vs spring data jpa video will clarify your doubt
Hello Im getting java.sql.SQLException : Field 'id' doesn't have a default value I have annotated Long id as a primary key of an employee entity but still im getting same error while inserting data Anyone can u help !!
Guys, let's use the latest version of Spring boot, hibernate, and MySQL database to build Rest web services. More free courses inline, stay tuned!.
please can you use the intellijIdea as a development ide.
Please can you do registration and login authentication with Android app using retrofit to send and receive http requests to spring boot backend?
Ok man, I am sorry. Now I have STS integrated with Eclipse and everything is workong just fine. Thx for tutorial Man!
Please use sts ide sr now days lot of demand
Sir getting error while creating post request
wow! it's my first time that I'm writing a comment on TH-cam, I LOVE this course! thanks my Indian friend, fan of u from Iran
Every line was point to point . One who knows basics of java can easily understand through this video.
Thanks, very useful. I tried to post and get data but it's doesn't work. after debugging I realized that the Lombok doesn't provide a getter and setter for the class. when I added it manually (get, set) everything works well!
I am a big fan of videos uploaded by Ramesh fadatare, his approach in explanation with lots of patience, consistency in explanation, perseverance till he reaches the last bit of the API. Thank you sir! You are a blessing to the Java Development world.
For those who're getting nullPointerException and null values in database despite successful POST request, it can be sorted simply by replacing @Data annotation from model class with usual getters, setters.
Thank you so much! I had the same problem.
Thank you brother I wasted my 2 hours in it and find your comment now
Thanks bro! 👍
Thanks bhai, got resolution after 1 hour. thank you so
much.
now I dont have nullPointerException but it doesnt insert into the table anymore...
Thank you sir for the Detailed explanation, in the past I just used to memorise keywords without knowing its purpose
हाय रमेश, तुझ्या व्हीडीओमुळे खुप काही शिकायला मिळाले. धन्यवाद !!!
The code structure is very nice and the explanations are clear, easy to understand. Perfect...
Nijamave so clear cut explanation.....Top notch
cleared so many concept in just single video. Thanks!
been through countless udemy videos. Stopped learning spring boot as I felt it is way more complicated than nodejs backend dev, but this video is an absolute charm! Worked like magic. Second day and I am creating api's already!
bro I'm just starting out with Java Backend, will it be fine if I directly start with microservices and springboot.
I've already strong knowledge of Java.
highly resourceful and knowledgeable, it definitely comes in handy to start a new spring boot application with good project structure and hibernate JPA
This help me get up to speed quickly. Very well explained, I like the tips on not having to use unnecessary annotation! 💯
The way you explain is great, never gets boring, Thank you...!🖤
Why is this man so good .
Thanks for the quality content provided clutter free, precise, to the point, loved it! Keep up the good work.
Thanks, very useful. I tried to post and get data but it's doesn't work. after debugging I realized that the Lombok doesn't provide a getter and setter for the class. when I added it manually (get, set) everything works well!
same
Lombok does provide getters and setters. I was facing the same issue with intellij IDE. I had to enable 'Annotations preprocessing' and also install Lombok plugin in order to access the getters and setters during compile time. Hope this helps if you are using intellij
thanks Fadi this was super helpful!
Even I faced the issue with Lombok. Then I added getter , setters to java code by right click->generate getters and setters,
Also to be able to debug I modified the header in postman to content-type:application/json/ One of them helped to create and save records to database
same i also faced issue
Lombok Seems to not be working for some. Just generate Getters and Setters in the Employee class and it should work! Happy coding!
this comment is going to help a lot
Helped me thank you very much
!
Thanks to your comment I fixed my issue
Thank you soo much it worked for me. I saw many videos but every time struck somewhere in the code with errors. I am soo happy now that it successfully executed.
easy to understand, to the point, may this will help me in tomorrow interview # learn&grow
good video sir. you covered all basic concepts very nicely.
Happy to learn about rest API crud !!
Kindly teach about locking in jpa sir, it's very helpful
Thanks for the wonderful video session. By following it I am able to develop a spring boot application as per my requirements.
Thanks to java guides doing such a valuable content at right time
REST API Greately Explained by @Java Guides.. Thanks
Only One thing need to say. I Love your way of teaching :) Good 1.27 hours of learning from you. lastly you forgot to show the custom exception throw. I was waiting to see it.
Hi Ramesh,
Great going tutorial....
I have one question as for hibernate whenever we initiate any operation we need to create Session factory / session objects..
But here as we are using hibernate with spring boot why session factory is not created. Is it managed by spring boot internally and if it's not then could you please guide here...
Thanks in advance
Thanks
Nicely exaplained with to the point content.Keep spreading knowledge.Thanks!!
thank you very much, I recommend this video to learn basic spring boot
Sir please answer me : Does this project have Entity, Repository, Services, and Controller layers an at least one file in each one. The logic is up to you, but you need the have basic CRUD end points in your controller ?
Thank you for making these videos.I am learning a lot from your videos.
Such a nice video to learn and you have explained it very easy way too. But I faced one issue while following your steps and unable to fix it. In postman i am getting an unsupported media error. Even when i have selected JSON, even tried with content-type = application/json. I am using java 8 and the highest stable version of spring boot and mysql. if you can suggest me the fix, that will be very helpful. code I have copied from your git. so all are the same, except pom (versions)
1:24:45 Thank you sir helped me a lot
thanks bro! It teaches me a lot!😊
Thank you so much for the wonderful session and it helped me a lot..
Thanks sir, It was helpful. Keep doing that.
Thank you for this gold video,
i need to make remation one to one and one to may, do you have any link
this video is pure GOLD. Did you also make a video where you implement this crud service with angular?? thx for the vid bro.
Check Angular + Spring Boot full stack CRUD app course on this channel
@@JavaGuides your channel is something amazing. It’s possible to support you any way?
Great!!! I'm waiting..., later, can you do a tutorial about java spring boot reactivemongorepository..... :) would be great!!!!
superb explanation
very good explanation sir, thank you
Great Explanation!
Amazing class! thanks man!
your video is ossam , i really learn something from it.
Informative and helpful tutorial. Thank you !
Thank you so much for sharing this knowledge , it really helped me.
Very nice explaination step by step. Thanks
Hii ramesh ,
good evening ,
actually i have a doubt is Exception class is works only for optional objects rather than normal objects
🤔
Thank you so much Sir... 🙏🙏
Learning a lot from your videos. ❤️❤️
Kindly help me with it -
Like I write code,
commit it to svn (or git),
Now build with jenkins
And the jenkins will deploy it to the local server.
Is this possible to learn without using AWS etc at local setup ?
Very nice brother.You deserve a lot of views and subscribers 👏
Hi sir please create a course on DB caching using Hibernate jpa and redis thanks in advance
this was very helpful for me.. thanks a lot
Awesome video sir...Thanks a lot for this kind explanation.
Adoro e amo Eclipse suas aulas sao sensacionais por usar Eclipse, parabens
Hi sir, Thank you for making this video but I have query that how can I enter values in between like if I delete Id=2 then how can enter a value of 2 again later.
Great to Learn.Most of the concepts are pretty clear
Hi Sir, do you have a video explaining spring boot rest api that has multiple entities with one to one or one to many relationships
Sir ye puchhna tha ki ye pure hibernate pr hai Jparepository pr h?
39:50 you can also add @Component in EmployeeRepsoitory and could have used @Autowire in service class ryt? correct me if i am wrong
@Data annotation should work as a replacement for generating all the getters and setters. But for me the annotation is not working. I had to generate all the getters and setters manually. Otherwise whenever I am hitting the url with the json data no data is coming in to the controller.
same it is not working for me also searched so many
Same!
thank you so much for explaining it in detail really nice thank you
Thank you so much sir.. For making this video👍
Great tutorial. Thanks. Keep up the good work.
When i had run the application and when i had inserted the values into database through post method in postman, I'm getting internal server error - 500. I can't get the values in database. Help me out
For me also same
Sir, can u make detail video on webClient. It must include JUnit & exception handling of WebClient too.
Thank you Good Job
excellent tutorial, thankyou so much
Thank you so much! 🙌🏽🙌🏽🙌🏽🙌🏽
Can we use hibernate and spring data jpa together? I am not sure why we integrate hibernate with spring data jpa?
please upload videos on docker with java
Sir my question how to do this using online mysql and if i want to save pictures to db for my android java app is is better saving photos to hosting(save the url in db) or to database?Please answer to my question,appreciated
This weekend plan Set 😁❤️ Thanks
pls using Intellij. and pls use all relationships. thnx a lot.
sir, a basic question....why did you make an implementation class of service interface? Like we can make a service class and create API methods ...I want to know the reason.Kindly reply .
for loose coupling.
In spring-based applications, we use dependency injection right, and to maintain the dependencies loosely coupled we typically use interfaces.
It's always a good practice to use interfaces so that we can replace the implementations easily.
What name does he add at 53:13 ? I can't see it
Thank you so much! This video really helpful for me.
Can you please tell how to resolve classnotfoundexception
I have a doubt..is DAO or Repository layer means same or they do have some separate meaning internally? Somebody explain please.
sir latest version of dialect in hiberanate.i am using 17 jse
Thanks.. Very useful content 👍
Superb
very nice course, thank you!
sir i have doubt if we have more than one entity classes like Employee,address,experience,contactdetials how we need to develope Rest Api sir.
we need to create repository for every entity classes ah sir.
and also i have one more doubt we need to create service and controller classes for every entitiy classes ah sir.
Sir one help could you add Java validation to this code for not null and size. I'm getting errors could you help me
Hello sir, thanks for this amazing video but can you please help me know how can I use JSP pages.. and call data their. A little hint can help to build my project. Please help.
For JSP, you need to create a Spring MVC web application. Check out my blog post at www.javaguides.net/2019/08/spring-boot-web-application-with-jsp-crud-example-tutorial.html
Does anyone know why I got this error for the POST API? "not-null property references a null or transient value : com.example.springbootdemo.model.Employee.firstName" . I don't how to debug it
Got the same error - not able to resolve
I have the same issue, with fadi Mashan explanation, I understood that Lombok didn't work. So I just did Source -> Generate Getter & Setter and it works.
@@haingotianarazafinimanana5631 Thanks for the advice it resolved the issue
Full project on e-commerce please using thymeleaf hibernate and restapi
nice video, dude
Great explanation ❤️
Java Guides Thanks very much
Am getting internal server error 500 while using postman and data is not inserted in workbench.please help me out
Thank you for the video. I see that you used JPA for this but where is the Hibernate bit? I don't see any Hibernate Sessions
I used spring data jpa, it internally uses hibernate as jpa provider.
Thank you!
i have followed as per your instruction but unable to create table automatically in mysql database using java 11
" not-null property references a null or transient value " Sir I got this error... I tried a lot but I can't fix it...Can you guss this error?
What is the IDE used in the video?
Add field date for CRUD please. Thanks!
postman is sending the post http request to db without any error but mysql is not showing me data .i had used with and without lombok but nothing is working any suggestion
But this is Spring Data JPA and not Hibernate right ?
I know Spring Data JPA uses Hibernate internally to do all operations but it cannot be considered pure Hibernate right ?
Spring data jpa is library to simply and reduce boilerplate code of DAO layer that is developed by Hibernate
@@RameshFadatare So this is what's confusing me,
During an interview a guy asked me if I have worked on Hibernate, I said I have worked with Spring data JPA, so the guy said but we're only using Hibernate in our product.
Does that guy not understand that Spring Data JPA is also hibernate or am I missing something here ?
@@ShinAkuma spring data jpa is not a hibernate, it is library developed on top of jpa. Watch my hibernate vs spring data jpa video will clarify your doubt
@@RameshFadatare There is no video on your channel. Maybe it's private ?
Hibernate vs Spring Data JPA at th-cam.com/video/4Py9RTVWyvE/w-d-xo.html
Hello
Im getting java.sql.SQLException : Field 'id' doesn't have a default value
I have annotated Long id as a primary key of an employee entity but still im getting same error while inserting data
Anyone can u help !!