join table in where clause criteria in java hibernate

Solutions on MaxInterview for join table in where clause criteria in java hibernate by the best coders in the world

showing results for - "join table in where clause criteria in java hibernate"
Samantha
07 May 2018
1		Criteria criteria = getSession().createCriteria(MainTable.class);
2        criteria.createAlias("anotherTableVariable", "t2"); // Alias with association variable
3        criteria.add(Restrictions.eq("t2.name", name));
4       
similar questions