1
0

feat: 默认Repository的主键为Long

This commit is contained in:
2025-08-24 10:43:31 +08:00
parent 79b1632bc3
commit 9d52da9b1a
5 changed files with 6 additions and 6 deletions

View File

@@ -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> {
}

View File

@@ -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);

View File

@@ -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> {
}