X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportalapp%2Fportal%2Fservice%2FUserRolesCommonServiceImpl.java;h=522579d838af74e9a04882113c0eed30b1d977fb;hb=71525f539001ffab18215acbbbb92fef1d863860;hp=b41dcd7a2ea7b0f0d8e00812af531088d1e32dd4;hpb=f26978caa8e8aa870c47032a2adb5284a71a72bb;p=portal.git diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java index b41dcd7a..522579d8 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java @@ -597,9 +597,8 @@ public class UserRolesCommonServiceImpl { "syncAppRoles: There is exactly 1 menu item for this role, so emptying the url"); @SuppressWarnings("unchecked") List funcMenuItems = localSession - .createQuery("from :name where menuId=:menuId") - .setParameter("name",FunctionalMenuItem.class.getName()) - .setParameter("menuId",menuId) + .createQuery( + "from " + FunctionalMenuItem.class.getName() + " where menuId=" + menuId) .list(); if (funcMenuItems.size() > 0) { logger.debug(EELFLoggerDelegate.debugLogger, "got the menu item");