DATACASS-163: added @NoRepositoryBean to SDC-provided interfaces

This commit is contained in:
Matthew Adams
2014-08-29 11:10:01 -05:00
parent 21cb19ab18
commit 3ed2e53afd
2 changed files with 6 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import java.io.Serializable;
import org.springframework.data.cassandra.mapping.PrimaryKeyColumn;
import org.springframework.data.cassandra.repository.support.BasicMapId;
import org.springframework.data.repository.NoRepositoryBean;
/**
* Basic Cassandra repository interface.
@@ -27,12 +28,10 @@ import org.springframework.data.cassandra.repository.support.BasicMapId;
* </ul>
*
* @param <T> The type of the persistent entity.
*
* @see TypedIdCassandraRepository
* @see MapId
* @See {@link MapIdentifiable}
*
* @author Matthew T. Adams
*/
public interface CassandraRepository<T> extends TypedIdCassandraRepository<T, MapId> {
}
@NoRepositoryBean
public interface CassandraRepository<T> extends TypedIdCassandraRepository<T, MapId> {}

View File

@@ -24,6 +24,7 @@ import org.springframework.data.cassandra.mapping.Table;
import org.springframework.data.cassandra.repository.support.BasicMapId;
import org.springframework.data.domain.Persistable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.NoRepositoryBean;
/**
* Cassandra-specific extension of the {@link CrudRepository} interface that allows the specification of a type for the
@@ -64,5 +65,5 @@ import org.springframework.data.repository.CrudRepository;
* @author Alex Shvid
* @author Matthew T. Adams
*/
public interface TypedIdCassandraRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {
}
@NoRepositoryBean
public interface TypedIdCassandraRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {}