pattern to transfer search model to dao
Posted
by zeroed
on Stack Overflow
See other posts from Stack Overflow
or by zeroed
Published on 2010-05-25T09:53:21Z
Indexed on
2010/05/25
10:01 UTC
Read the original article
Hit count: 224
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.
© Stack Overflow or respective owner