From 992ccb595620024ce5d01e3c0d3d3d7402d1de9c Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 20 Feb 2014 20:27:46 +0100 Subject: [PATCH] DATAJPA-471 - Ensure test succeed on Spring 4. Annotated MappedTypeRepository test repository interface with @NoRepositoryBean to prevent it to fail the build on Spring 4. --- .../data/jpa/repository/sample/MappedTypeRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/data/jpa/repository/sample/MappedTypeRepository.java b/src/test/java/org/springframework/data/jpa/repository/sample/MappedTypeRepository.java index cb97b82e8..acfbd7cfb 100644 --- a/src/test/java/org/springframework/data/jpa/repository/sample/MappedTypeRepository.java +++ b/src/test/java/org/springframework/data/jpa/repository/sample/MappedTypeRepository.java @@ -17,18 +17,18 @@ package org.springframework.data.jpa.repository.sample; import java.util.List; -import org.springframework.context.annotation.Lazy; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.sample.AbstractMappedType; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.NoRepositoryBean; import org.springframework.data.repository.query.Param; /** * @author Thomas Darimont */ -@Lazy +@NoRepositoryBean public interface MappedTypeRepository extends JpaRepository { @Query("from #{#entityName} t where t.attribute1=?1")