@@ -68,7 +68,7 @@ public interface ControlledVocabularyRepository extends JpaRepository<Controlled
* @param page the page
* @return the list
*/
@Query("select vt from ControlledVocabulary cv inner join cv.terms as vt where cv.uuid = ?1 and (vt.code like concat(?2, '%') or vt.title like concat(?2, '%') or vt.description like concat(?2, '%'))")
@Query("from VocabularyTerm vt where vt.vocabulary.uuid = ?1 and (vt.code like concat(?2, '%') or vt.title like concat(?2, '%') or vt.description like concat(?2, '%'))")