DATACMNS-29 - Adapted changes in Spring Data Commons.

This commit is contained in:
Oliver Gierke
2011-05-12 11:30:28 +02:00
parent 159ea28f88
commit 75281a99d4
5 changed files with 9 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ import javax.persistence.EntityManager;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.CrudRepository;
/**

View File

@@ -37,13 +37,13 @@ import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.utils.JpaClassUtils;
import org.springframework.data.repository.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.repository.CrudRepository;
import org.springframework.util.Assert;
/**
* Default implementation of the {@link Repository} interface. This will offer
* Default implementation of the {@link CrudRepository} interface. This will offer
* you a more sophisticated interface than the plain {@link EntityManager} .
*
* @author Oliver Gierke

View File

@@ -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.

View File

@@ -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> {
}

View File

@@ -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