I don't have to tell you that programmers are lazy.
That's why we love DRY (Don't Repeat Yourself).
If you find yourself creating lots of methods like findByName or findByTitle etc., you're going love what I'm about to show you.
With the dynamic finders you can use the following methods out of the box (ofcourse you'll have to extend your DbTable class to it).
- findByX('valueX')
- findLikeX('ValueX')
- findByXAndY('ValueX', 'ValueY')
- findLikeXAndY('ValueX', 'ValueY')
- findAllByX('valueX')
- findAllLikeX('valueX')