Interface EntityViewRepository<T,ID extends Serializable>
- Type Parameters:
T- Entity view type.ID- Entity ID type.
- All Superinterfaces:
org.springframework.data.repository.Repository<T,ID>
@NoRepositoryBean
public interface EntityViewRepository<T,ID extends Serializable>
extends org.springframework.data.repository.Repository<T,ID>
Base entity view repository interface.
- Since:
- 1.6.9
- Author:
- Moritz Becker, Eugen Mayer
-
Method Summary
Modifier and TypeMethodDescriptionlongcount()Gets the number of existing entity views.of type<T>.booleanChecks if an entity view of type<T>with the given id exists.findAll()Returns all entity views of type<T>.Finds all entity views of type<T>with the given ids.Finds the entity view of type<T>with the given id.
-
Method Details
-
findOne
Finds the entity view of type<T>with the given id.- Parameters:
id- the id of the entity view of type<T>to find- Returns:
- the entity view of type
<T>with the given id
-
exists
Checks if an entity view of type<T>with the given id exists.- Parameters:
id- the id to check for existence- Returns:
- true if an entity view of type
<T>exists, else false
-
findAll
Returns all entity views of type<T>.- Returns:
- an iterator over all entity views of type
<T>
-
findAll
Finds all entity views of type<T>with the given ids.- Parameters:
idIterable- the ids of the entity views of type<T>to find- Returns:
- an iterator over the entity views of type
<T>
-
count
long count()Gets the number of existing entity views.of type<T>.- Returns:
- the number of existing entity views of type
<T>
-