refactor: Update repository interfaces to use CrudRepository

pull/1/head
Lunix-420 2024-10-28 15:44:34 +01:00
parent 243738bd34
commit 1f45622f3b
7 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.Employee;
public interface EmployeeRepository extends JpaRepository<Employee, Long> {
public interface EmployeeRepository extends CrudRepository<Employee, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.FormOfAddress;
public interface FormOfAddressRepository extends JpaRepository<FormOfAddress, Long> {
public interface FormOfAddressRepository extends CrudRepository<FormOfAddress, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.PrimarySkill;
public interface PrimarySkillRepository extends JpaRepository<PrimarySkill, Long> {
public interface PrimarySkillRepository extends CrudRepository<PrimarySkill, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.ProjectAssignment;
public interface ProjectAssignmentRepository extends JpaRepository<ProjectAssignment, Long> {
public interface ProjectAssignmentRepository extends CrudRepository<ProjectAssignment, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.Project;
public interface ProjectRepository extends JpaRepository<Project, Long> {
public interface ProjectRepository extends CrudRepository<Project, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.SecondarySkill;
public interface SecondarySkillRepository extends JpaRepository<SecondarySkill, Long> {
public interface SecondarySkillRepository extends CrudRepository<SecondarySkill, Long> {
}

View File

@ -1,7 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import com.maradona.backend.entities.SkillAssignment;
public interface SkillAssignmentRepository extends JpaRepository<SkillAssignment, Long> {
public interface SkillAssignmentRepository extends CrudRepository<SkillAssignment, Long> {
}