Some times I never like writing query while device coding the alternative solution I found is simple for loops.
Ex:
poset = new HashSet<String>();
for (Bank_details BO : Bank_details.findAll()) {
Lba = BO.getBANK_NO().toString();
Mat = BO.getBANK_GROUP().toString();
if (Lba.equalsIgnoreCase(edtKey.getText().toString())&&Mat.equalsIgnoreCase(edtCtry.getText().toString())) {
poset.add(BO.getEBELN());
}
}
-Midhun VP