src/main/java/org/criteria4jpa/criterion/Restrictions.java
public static Criterion allEq(Map<String,Object> values) {
    Conjunction conjunction = new Conjunction();
    for( Entry<String, Object> entry : values.entrySet() ) {
      conjunction.add( eq(entry.getKey(), entry.getValue()) );
    }
    return conjunction;
  }
public static Criterion allEq(Map<String,Object> values) {
    Conjunction conjunction = new Conjunction();
    for( Entry<String, Object> entry : values.entrySet() ) {
      conjunction.add( eq(entry.getKey(), entry.getValue()) );
    }
    return conjunction;
  }
public static Criterion allEq ( Map < String , Object > values ) { Conjunction conjunction = new Conjunction ( ) ; for ( Entry < String , Object > entry : values . entrySet ( ) ) { conjunction . add ( eq ( entry . getKey ( ) , entry . getValue ( ) ) ) ; } return conjunction ; }
<p>
Creates a conjunction of "equals" restrictions for each
entry in the map.
</p>

<p>
Same as manually creating a conjunction via {@link #conjunction()}
and adding an equals restriction via {@link #eq(String, Object)} for
each map entry.
</p>

@param values Map containing property name to value mappings
@return {@link Conjunction} of "equal" constraints
<p > Creates a conjunction of equals restrictions for each entry in the map . < / p >