feat: 默认Repository的主键为Long
This commit is contained in:
@@ -4,5 +4,5 @@ import com.lanyuanxiaoyao.service.template.entity.Company;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CompanyRepository extends SimpleRepository<Company, Long> {
|
||||
public interface CompanyRepository extends SimpleRepository<Company> {
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
|
||||
|
||||
@SuppressWarnings("NullableProblems")
|
||||
@Repository
|
||||
public interface EmployeeRepository extends SimpleRepository<Employee, Long> {
|
||||
public interface EmployeeRepository extends SimpleRepository<Employee> {
|
||||
@EntityGraph(value = "employee.detail", type = EntityGraph.EntityGraphType.FETCH)
|
||||
@Override
|
||||
Optional<Employee> findOne(Specification<Employee> specification);
|
||||
|
||||
@@ -4,5 +4,5 @@ import com.lanyuanxiaoyao.service.template.entity.Report;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ReportRepository extends SimpleRepository<Report, Long> {
|
||||
public interface ReportRepository extends SimpleRepository<Report> {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user