como montar o where para que coloque um “or” entre
name = ? or street = ? … tentei Restrictions.or
mais deu erro qdo uso createAlias ???
alguém teria alguma ideia como fazer ???
abs
c.add( Restrictions.eq(auxCampo, auxValor) );
c.createAlias(ccs.getNomeTabela(), ccs.getNomeTabela());
c.add(Expression.eq(ccs.getNomeTabela()+"."+ccs.getCampo(), ccs.getValor()));
}
--esse é resultado do select acima
where this_.name=? and address1_.street=? order by this_.Date asc