Answers for "join table in where clause criteria in java hibernate"

0

join table in where clause criteria in java hibernate

Criteria criteria = getSession().createCriteria(MainTable.class);
        criteria.createAlias("anotherTableVariable", "t2"); // Alias with association variable
        criteria.add(Restrictions.eq("t2.name", name));
Posted by: Guest on August-20-2021

Code answers related to "join table in where clause criteria in java hibernate"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language