diff --git a/src/main/java/com/lpvs/repository/LPVSLicenseConflictRepository.java b/src/main/java/com/lpvs/repository/LPVSLicenseConflictRepository.java index eb9347d3..0825c00e 100644 --- a/src/main/java/com/lpvs/repository/LPVSLicenseConflictRepository.java +++ b/src/main/java/com/lpvs/repository/LPVSLicenseConflictRepository.java @@ -7,15 +7,15 @@ package com.lpvs.repository; import com.lpvs.entity.LPVSLicenseConflict; +import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; -import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository -public interface LPVSLicenseConflictRepository extends CrudRepository { +public interface LPVSLicenseConflictRepository extends JpaRepository { @Query(value = "SELECT * FROM license_conflicts", nativeQuery = true) List takeAllLicenseConflicts(); diff --git a/src/main/java/com/lpvs/repository/LPVSLicenseRepository.java b/src/main/java/com/lpvs/repository/LPVSLicenseRepository.java index fc41ff84..9f2317f8 100644 --- a/src/main/java/com/lpvs/repository/LPVSLicenseRepository.java +++ b/src/main/java/com/lpvs/repository/LPVSLicenseRepository.java @@ -7,15 +7,15 @@ package com.lpvs.repository; import com.lpvs.entity.LPVSLicense; +import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; -import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository -public interface LPVSLicenseRepository extends CrudRepository { +public interface LPVSLicenseRepository extends JpaRepository { @Query(value = "SELECT * FROM licenses", nativeQuery = true) List takeAllLicenses();