simplyrestful.springdata.repository.SpringDataRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persist-springdata Show documentation
Show all versions of persist-springdata Show documentation
Easily persist your SimplyRESTful API using Spring Data
package simplyrestful.springdata.repository;
import java.util.Optional;
import java.util.UUID;
import javax.inject.Named;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
* A Spring Data Repository to access the data store.
*
* The entity that is persisted must have a UUID field in order to identify each entity.
*
* @param is the entity used to persist data (which contains a UUID field)
*/
@Named
public interface SpringDataRepository extends PagingAndSortingRepository{
Optional findByUuid(UUID uuid);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy