fixed sql query logic
This commit is contained in:
parent
23306b7d67
commit
a60a7a99b3
@ -13,6 +13,6 @@ import org.springframework.stereotype.Repository;
|
|||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface SubjectAltRepo extends JpaRepository<SubjectAlt, UUID> {
|
public interface SubjectAltRepo extends JpaRepository<SubjectAlt, UUID> {
|
||||||
@Query("SELECT y.subject FROM SubjectAlt y WHERE y.name ILIKE CONCAT('%', :title, '%') ")
|
@Query("SELECT y.subject FROM SubjectAlt y WHERE :title ILIKE CONCAT('%', y.name, '%')")
|
||||||
public List<Subject> findSubjectIdWithTitle(@Param("title") String title);
|
public List<Subject> findSubjectIdWithTitle(@Param("title") String title);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user