pattern to transfer search model to dao
- by zeroed
We have a dao as a project (jar file).
Clients use its interfaces and factories to operate with database.
Using standard CRUD operations, dao allows you to search an entity by some search criteria.
What is the best way to represent this criteria?
Is transfer object appropriate pattern in this situation?
How should client create SearchModel instance?
Please, share.
Regards.