diff options
Diffstat (limited to 'portal-BE/src/main/java/org/onap/portal/service/app/FnAppDao.java')
-rw-r--r-- | portal-BE/src/main/java/org/onap/portal/service/app/FnAppDao.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/portal-BE/src/main/java/org/onap/portal/service/app/FnAppDao.java b/portal-BE/src/main/java/org/onap/portal/service/app/FnAppDao.java new file mode 100644 index 00000000..f57cc246 --- /dev/null +++ b/portal-BE/src/main/java/org/onap/portal/service/app/FnAppDao.java @@ -0,0 +1,21 @@ +package org.onap.portal.service.app; + +import java.util.List; +import org.onap.portal.domain.db.fn.FnApp; +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 +interface FnAppDao extends JpaRepository<FnApp, Long> { + + @Query + List<FnApp> getByUebKey(final @Param("uebKey") String uebKey); + + @Query + List<FnApp> getCentralizedApps(); + +} |