By IvanoBulo
via ivanobulo.blogspot.com
Published: Oct 08 2008 / 16:12
In most cases your DAOs needs some search methods and most developers are usually creating numerous of methods to perform all types of different search, like findByName , findByNameAndEmail, findByUsername etc. Also these methods are usually have "twins" methods for counting results.
Some smarter developers using "example" beans for searching. But you should be very careful because of the default values assigned to the bean properties.
I don't like both approaches...
Add your comment