With minimal information given i would say there are two classes Component.class and WorkInProcess.class. I guess WIP_ID is foreign key for WorkInProcess.class. You can use the following hql query or detached criteria based query to achieve it:
session.createQuery("from Component m where m.AC_ID is NULL and WIP_ID IS NOT NULL and m.USER_ID IN (" +
"select e.USER_ID from WorkInProcess e where e.WIP_ID:=wip_id) is null").setParameter("wip_id", wip_id).uniqueResult();
or
DetachedCriteria Query1 = DetachedCriteria.forClass(WorkInProcess.class);
Query1.add(Restrictions.eq("WIP_ID", WIP_ID));
Criteria Query2 = session.createCriteria(Component.class);
Query2.add(Restrictions.isNull("AC_ID"));
Query2.add(Restrictions.isNotNull("WIP_ID"));
Query2.add(Property.forName("USER_ID").eq(Query1));
Please refer : hql-and-nested-queries