When we tried to retrieve data for a arraylist, we are iterating each row and then we are using fetch query.is there any other iteration row in hibernate template or sql
for (RequestObjRel reqObjRel : requestObjRelList) {
String sqlQuery = "from Ce where cerId = '"
+ reqObjRel.getCed()
+ "' and trbr = "
+ reqObjRel.getCNbr();
List<Certificate> certDetailList = dao
.retrieveTableData(sqlQuery);
}
I could not find efficient way to retrieve data