Access the full course here: javabrains.io/courses/spring_bootquickstart
Learn how to create a Repository interface using Spring Data JPA.
42 Comments on "Spring Boot Quick Start 28 – Creating a Spring Data JPA Repository"
Nice step by step for start-up learning
The Spring Starter Project shown in this video would not run when I used the default spring boot version 2.0.0.RELEASE. I had to change it to 1.5.9. It got an error Archive for required library: '…/.m2/repository/org/apache/derby/derby/10.14.1.0/derby-10.14.1.0.jar' in project 'course-api-data' cannot be read or is not a valid ZIP file
for alle that have problems with the @Entity annotation and the corrosponding javax.persistence.Entity, right click on your project and select clean and build. Your Dependency should thenfixed..
Thanks for all your videos it is really helpful ..and Explaind very clearly love you bro.
Gostaria de deixar a recomendação para o pessoal que está começando também fazerem o download gratuito do e-book API RESTful com Spring Boot.Tem a parte de JPA e Spring Boot.Baixem GRÁTIS no link → www.javaavancado.com/ebook-spring-boot/index.html
Since a class cannot extend an interface you might face problem if you forget to change the declaration of TopicRepository from class to interface. Only when you change it will Eclipse show you CrudRepository in the import hints.
I had errors because I wasnt using the JDK 1.8
Is the saved data persistent? If I kill the server and start it again, will the data be still in my "database"?
At least on my machine the database is empty on every new run of the application.
now it wont work if u didnt annotate ur interface which extends CrudRepo with @Repository
In CodeChannels.com, you can learn to code by watching videos and stay up to date with latest code shows, events and tutorials aggregated from various leading developer communities.
Copyright 2016 By CodeChannels.com All rights reserved.