diff options
Diffstat (limited to 'portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java')
-rw-r--r-- | portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java b/portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java index 6e3d829e..c79fb0ed 100644 --- a/portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java +++ b/portal-BE/src/main/java/org/onap/portal/dao/fn/FnLanguageDao.java @@ -42,11 +42,15 @@ package org.onap.portal.dao.fn; import org.onap.portal.domain.db.fn.FnLanguage; import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; @Repository @Transactional public interface FnLanguageDao extends JpaRepository<FnLanguage, Long> { + @Query + FnLanguage getByLanguageAlias(final @Param("alias") String alias); } |