diff options
Diffstat (limited to 'portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java')
-rw-r--r-- | portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java b/portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java index 40f8bf65..cdbba06a 100644 --- a/portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java +++ b/portal-BE/src/main/java/org/onap/portal/service/fn/FnLanguageService.java @@ -41,6 +41,7 @@ package org.onap.portal.service.fn; import java.util.List; +import java.util.Optional; import org.onap.portal.dao.fn.FnLanguageDao; import org.onap.portal.domain.db.fn.FnLanguage; import org.springframework.beans.factory.annotation.Autowired; @@ -55,6 +56,9 @@ public class FnLanguageService { this.fnLanguageDao = fnLanguageDao; } + public Optional<FnLanguage> findById(Long id){ + return fnLanguageDao.findById(id); + } public List<FnLanguage> getLanguages(){ return fnLanguageDao.findAll(); } |