Reputation: 123
There are some ways for us to implement JPA in Spring framework.
Is JpaRepository can be known as the spring data solution for JpaDaoSupport?
JpaDaoSupport
: from org.springframework.orm.jpa.support
JpaRepository
: from org.springframework.data.jpa
I think this is similar to difference between jpatemplate and jpadatasupport LINK
Upvotes: 1
Views: 146
Reputation: 62653
JpaDaoSupport
class has been deprecated in Spring 3.1 and should not be used in new projects. More generally, the JPA template pattern has been deprecated in Spring 3.1 and should not be used anymore.
Read this article from Baeldung for details: The DAO with JPA and Spring
You should now use CrudRepository, JpaRepository, or PagingAndSortingRepository.
Read CrudRepository, JpaRepository, and PagingAndSortingRepository in Spring Data for explanations.
Upvotes: 1