Skip to content

Commit

Permalink
Merge pull request #431 from bcgov/feature/GRAD2-3218
Browse files Browse the repository at this point in the history
GRAD2-3218 - switches psi data to now come from ISD_PSI_REGISTRY
  • Loading branch information
mightycox authored Mar 6, 2025
2 parents e334187 + 9e1501d commit 63fb399
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 @@ -11,7 +11,7 @@
@Data
@Immutable
@Entity
@Table(name = "TAB_POSTSEC")
@Table(name = "ISD_PSI_REGISTRY")
public class PsiEntity {

@Id
Expand Down Expand Up @@ -67,5 +67,5 @@ public class PsiEntity {
private String psiUrl;

@Column(name = "PSI_GROUPING", nullable = true)
private String psiGrouping;
private String psiGrouping;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@Repository
public interface PsiRepository extends JpaRepository<PsiEntity, String>, JpaSpecificationExecutor<PsiEntity> {

@Query(value="SELECT si.* FROM TAB_POSTSEC si where "
+ "(:psiName is null or si.PSI_NAME like %:psiName%) and ROWNUM <= 50",nativeQuery = true)
@Query(value="SELECT si.* FROM ISD_PSI_REGISTRY si where "
+ "(:psiName is null or si.PSI_NAME like %:psiName%) and ROWNUM <= 50",nativeQuery = true)
List<PsiEntity> searchForPSI(String psiName);

}

0 comments on commit 63fb399

Please sign in to comment.