I need to create a Hibernate criteria restriction that ors 3 Conditions. The problem is that the last condition is acutally to conditions using the AND operator.
My fir
Criteria criteriaObj = sessionselectreply.createCriteria(TaskReplyVO.class,"taskreply") .createAlias("taskreply.objTaskView", "taskview") .createAlias("objMailTo", "mailto") .add(Restrictions.eq("taskview.longTaskId", taskid)) .add(Restrictions.eq("mailto.longuserid", userid));