io.edurt.datacap.service.repository.BaseRepository Maven / Gradle / Ivy
The newest version!
package io.edurt.datacap.service.repository;
import io.edurt.datacap.service.entity.UserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import java.util.Optional;
public interface BaseRepository
extends PagingAndSortingRepository
{
Optional findByCode(String code);
void deleteByCode(String code);
default Page findAllByUser(UserEntity user, Pageable pageable)
{
throw new UnsupportedOperationException("findAllByUser not implemented");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy