DATACMNS-29 - Adapted changes in Spring Data Commons.
This commit is contained in:
@@ -19,11 +19,11 @@ import java.io.Serializable;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.repository.NoRepositoryBean;
|
||||
import org.springframework.data.repository.Repository;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
|
||||
/**
|
||||
* Extension of {@link Repository} to be added on a custom repository base
|
||||
* Extension of {@link CrudRepository} to be added on a custom repository base
|
||||
* class. This tests the facility to implement custom base class functionality
|
||||
* for all repository instances derived from this interface and implementation
|
||||
* base class.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package org.springframework.data.jpa.repository.sample;
|
||||
|
||||
import org.springframework.data.jpa.domain.sample.Role;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
|
||||
/**
|
||||
@@ -24,6 +24,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public interface RoleRepository extends JpaRepository<Role, Integer> {
|
||||
public interface RoleRepository extends CrudRepository<Role, Integer> {
|
||||
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.jpa.repository.QueryHints;
|
||||
import org.springframework.data.repository.Repository;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -56,7 +56,7 @@ public interface UserRepository extends JpaRepository<User, Integer>,
|
||||
|
||||
|
||||
/**
|
||||
* Redeclaration of {@link Repository#findOne(java.io.Serializable)} to
|
||||
* Redeclaration of {@link CrudRepository#findOne(java.io.Serializable)} to
|
||||
* change transaction configuration.
|
||||
*/
|
||||
@Transactional
|
||||
|
||||
Reference in New Issue
Block a user