@SuppressWarnings("unchecked") public List<Product> read(List<Long> ids){
  if ((ids == null) || ids.isEmpty())   return ImmutableList.of();
  String facet="";
  String logic_op="";
  for (  Long id : ids) {
    facet+=" " + logic_op + " p.id="+ id;
    logic_op="or";
  }
  return (List<Product>)find("from " + entityClass.getName() + " p WHERE "+ facet);
}

@ SuppressWarnings ( "unchecked" ) public List < Product > read ( List < Long > ids ) { if ( ( ids == null ) || ids . isEmpty ( ) ) return ImmutableList . of ( ) ; String facet = "" ; String logic_op = "" ; for ( Long id : ids ) { facet += " " + logic_op + " p.id=" + id ; logic_op = "or" ; } return ( List < Product > ) find ( "from " + entityClass . getName ( ) + " p WHERE " + facet ) ; }
retrieve a list of products to their ids . returned list is not controlled with user rights nor processing completion .
