backend-demo-tn/src/main/java/com/cubetiqs/demo/service/BaseService.java

14 lines
348 B
Java
Raw Normal View History

2020-06-17 17:54:21 +07:00
package com.cubetiqs.demo.service;
import com.cubetiqs.demo.repository.BaseRepository;
import org.springframework.data.repository.NoRepositoryBean;
import java.io.Serializable;
import java.util.List;
@NoRepositoryBean
public interface BaseService<T, ID extends Serializable> {
BaseRepository<T, ID> getRepository();
List<T> findAll();
}