Hi all, some times, i would like to create some logic for hibernate before it puts the objects inside the list. For example: let's suppose that this is a hibernate code for put the objects inside the list after the sql.
Code:
for(Object o : list){
// i would like to put a condition here, java code!!!
list.add(o);
}
There is anyway to do that out of the box? Or Do i have to implement the criteria interface? I want to do that because sometimes it is easier filter a list with java code than create a sql criteria, at lest before some performance problem.
Thanks,
Alberto