Note : To All viewers who are watching this video , incase you are getting error while using method findOne(empid) .This error can be resolved by using “return …
Original source
Note : To All viewers who are watching this video , incase you are getting error while using method findOne(empid) .This error can be resolved by using “return …
Original source
43 responses to “Spring Boot,Restful API,JPA, Hibernate, MySQL CRUD Tutorial”
Hi Varun, I am writing this specially to thank you for the amazing work. I have been looking for such detailed explanation project for one of my Learning setup for Selenium automation. You have no idea how beneficial is this single video for me. It not only gave lots of experience to understand, build and setup an API project but also a platform to teach many of my friends about API testing. Thanks a ton, I would surely watch other videos and learn more..Thanks from bottom of my heart!
Thanks Very much for such nice explaination. 🙂
Your video was really nice & I am able to demonstrate same in my system.
Once again Thank you .
Good job, its great!! :).. never stop you will have loads of subs…
With Employee table there is hibernate_sequence table also getting created?
After few days of solving all kinds of bugs, both folder structure, jpa(i wrote jps instead of jpa, spent 3 days on this bug) and id "type" bug, today solved all bugs, thank u for this beautiful intro to spring boot, got much knowledge from this tutorial, thank u is small word man, open a patron, iam willing to help others by contributing some money to u, so that u will provide us some more good content
you haven't provided version for mysql dependency in pom.xml, then which version will be used?
22:39 employeeRepository.findOne(id) is no longer valid in spring boot, they replaced it with employeeRepository.findById(id)
12:48 @NotBlank from hibernate is deprecated, can i use notblank from javax.validations
Very Helpful!
Hey this is the most satisfying and helpful video! Just a couple important queries. Why are u using JPA? Cant we just use hibernate alone. I am confused.
Secondly could you please tell how i can add a simple registration and login mechanism using thebabove technologies in this same project. Kindly help me. I coudlnt find this anywhere. Please guide sir!
what should i do when the table have a relationship ?.
Thanks a lot Varun. I am able to understand what is the flow and process, small request from my side is it possible to explain the method parameters and statements like 'response entity ' like this type of statements or lines so it will be heplfull to understand in which way wee need to think and progress for more clarity.
Thanks sir
Really help full…
Thanks
Hi Varun,I am getting the following issue : please help me out*************************
APPLICATION FAILED TO START
***************************Description:
Field employeeRepository in com.letstartcoding.springbootrestapiexample.dao.EmployeeDAO required a bean of type 'com.letstartcoding.springbootrestapiexample.repository.EmployeeRepository' that could not be found.
Action:Consider defining a bean of type 'com.letstartcoding.springbootrestapiexample.repository.EmployeeRepository' in your configuration.
I don't use findOne() (Inferred type 'S' for type parameter 'S' is not within its bound; should extend 'restaurant.customers.Customer') how to findOne() by get id model thank you.
not that bad
Thank you for sharing your knowledge .
I like this video.. God bless you
You could have used spring initializer instead of adding one by one in pom
Hi Varun, Brilliant explanation and thanks very much for the amazing work. I was keen on understanding the Model View Controller pattern and your video helped me with that, also I've a question as to why are we not using spring initialzr to create the dependency as it would be simpler approach I believe, is there a specific reason for that ? 🙂
I really appreciate , feeling more confident after watched this video. Thanks sir for this grt work
HI Varun, thanks much for this demo. Have tried implementing the same. Everything is fine but when i try to run as java application by right clicking the SpringBootApplication, i'm facing the following error:
Exception encountered during context initialization – cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory
Tricks i tried as suggested by google: Have included the required dependencies, have added a column annotation in bean class in addition to this above video. tried adding constructor for bean class. no use of all these. still the same error comes.. help me out pls..
i am having trouble with this error
"Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection"
can you please with this. It will be very helpful.
Hello, Can you please help me run Employee Application! I came up with some errors due to application properties file. Could you please help me figure out an error. I can run it as a maven build without any exception. The problem is with the final execution when we run EMPLOYEEaPPLICATION class. Thank you for the video and support!
Awesome Work Varun, straight to the point and perfect. Would suggest if you could have spoken about annotation a bit would have been even better, but this too is amazing stuff man, thank you.
good work thanks
Hi Varun, i really thank you for this amazing tutorial.
It 's awesome can you please explain how this code works. if you do that , it will help us to build our own application . If anyone knows the link please share the link
Awesome sir very well done . I am the beginner and it helped me a lot .
Hey, I see you’re responding to comments. This is a really nice tutorial, but how to make the json work with Bidirectional Association? It just turns into recursiveness.
Let’s say you access GET /employee/, then the json should also include all of the Assignment(s). Now, with bidirectional, what this does is that the assignment will refer back to the employee again, and an endless loop will happen causing stackoverflow. I know that you can just use an annotation to make it not serialize fields, but that for example mean that when you access GET /assignment/5, then the assigned employee json won’t be included.
See my stack overflow question for more detail: https://stackoverflow.com/questions/53807722/hibernate-and-tomee-bidirectional-association-causes-json-recursiveness. Thank you so much if you’ve got any info on this!!
thank u sir nice explanation
about spring boot and restcontroller.
Hi Varun
Thank you So much. It has been great help. Please keep uploading such videos.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
I am getting this error. what is the solution for that?
sir i have a doubt 1)why didn't u add hibernate jars in pom.xml file and
2) we should add spring orm whenever we are combining spring and hibernate
3)when we have to use service layer you used dao and controller
4)why is the red color mark on javaresources & main project till the end plzzzzz answer sir waiting for your reply
Get by id method is not working
Giving error as method not allowed
findOne(Long org0)<Employee> -crudRepository method is not showing in my eclipse
Dear Varun,
Great work and effort. Indeed a pleasure congratulating you. All the best!!
hi Varun, Thanks for your wonderful tutorial.it really helped me a lot.
but i am getting these error
sql exception:->Unable to load authentication plugin 'caching_sha2_password'.
can you help me to solve this?
You got new subscriber
. thanks a lot .
After 30 hours of all dirty approaches, finally find out problem and you helped alot.. Thanks man
Will this configuration work with tomcat 9.0?
Somebody can i help me?, please!
Throws this Exception, i don't know why happen that. 🙁
"java.sql.SQLException: Unknown system variable 'query_cache_size'"
PD: Thanks for the video, i love it and most important, i learn a lot!