public UserModel getUserByUserId(String userId) {
        if (userId == null || userId.trim().isEmpty()) return null;
        String hql = "from UserModel where userId = :userId";
        List<UserModel> list = entityManager.createQuery(hql).setParameter("userId", userId).getResultList();

        if (list == null || list.size() == 0) return null;
        return list.get(0);
    }