Link Details

Link 123804 thumbnail
User 241699 avatar

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...
  • 7
  • 0
  • 1007
  • 384

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)