Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- channelSubIdParameter = cb.parameter(String.class, "channelSubscribeId");
- userIdParameter = cb.parameter(Integer.class, "userId");
- entByChanAndUser = cb.createQuery(PortletEntityImpl.class);
- final Root<PortletEntityImpl> entityRoot = entByChanAndUser.from(PortletEntityImpl.class);
- entByChanAndUser.select(entityRoot);
- entByChanAndUser.where(cb.and(
- cb.equal(entityRoot.get(PortletEntityImpl_.channelSubscribeId), channelSubIdParameter),
- cb.equal(entityRoot.get(PortletEntityImpl_.userId), userIdParameter)
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement