Access the full course here: javabrains.io/courses/spring_bootquickstart
Learn how to create a Repository interface using Spring Data JPA.
37 Comments on "Spring Boot Quick Start 28 – Creating a Spring Data JPA Repository"
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"?
now it wont work if u didnt annotate ur interface which extends CrudRepo with @Repository
Hey,The tutorial is awesome! i have one question. i'm not able to import org.springFramework.data.repository.CrudRepository. i tried maven force updating the project after emptying .m2 folder. but still the same. is zer any other way to do this? thanks in advance!
I faced this problem myself. You have to make the TopicRepository class as an interface and not a class. Then eclipse will allow you to import CrudRepository
You can not import the necessary libraries for CrudRepository after Spring Boot version 1.5.4.
revert to version 1.4.7 and it will work.
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.