I am running a criteia with following code..
Code:
Criteria c = session.createCriteria(BasicTransaction.class);
c.createCriteria("basicTransactionType","basicTransactionType", CriteriaSpecification.INNER_JOIN);
//c.setFetchMode("basicTransactionType", FetchMode.JOIN);
c.add(Restrictions.and(Restrictions.in("id", l),
Restrictions.eq("isCommon", true)));
return c.list();
where "basicTransactionType" is enum
This works fine with FetchMode.JOIN but not with CriteriaSpecification.INNER_JOIN
If anyone can explain ?