Consider the typical bean that i use in my spring fetch/update methods:
In methods where i need to fetch parameters directly off the criteria, i have to have another parameter in the bean method:
It would be neat if i instead could have the criteria map auto-populated directly in the bean, i.e. the "Map criteria" would be inside the TO instead. It would be cleaner and remove alot of boilerplate code.
Is there anyway to get that working?
Code:
public class ReportRequestTO { Date startDate; Date endDate; }
Code:
public thing fetch(ReportRequestTO to, Map criteria){
Is there anyway to get that working?
Comment