Skip to content

Commit

Permalink
fix: Change CrudRepository to JpaRepository for 2 repos
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
  • Loading branch information
o-kopysov committed Oct 27, 2023
1 parent 9b6fd69 commit d660fc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<LPVSLicenseConflict, Long> {
public interface LPVSLicenseConflictRepository extends JpaRepository<LPVSLicenseConflict, Long> {

@Query(value = "SELECT * FROM license_conflicts", nativeQuery = true)
List<LPVSLicenseConflict> takeAllLicenseConflicts();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/lpvs/repository/LPVSLicenseRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<LPVSLicense, Long> {
public interface LPVSLicenseRepository extends JpaRepository<LPVSLicense, Long> {

@Query(value = "SELECT * FROM licenses", nativeQuery = true)
List<LPVSLicense> takeAllLicenses();
Expand Down

0 comments on commit d660fc3

Please sign in to comment.