tony
tony

Reputation: 123

difference between JpaRepository and JpaDaoSupport?

There are some ways for us to implement JPA in Spring framework.
Is JpaRepository can be known as the spring data solution for JpaDaoSupport?

I think this is similar to difference between jpatemplate and jpadatasupport LINK

Upvotes: 1

Views: 146

Answers (1)

Ortomala Lokni
Ortomala Lokni

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

Related Questions