May 6th, 2011, 09:42 AM
DAO Design Pattern: DAO Helpers
I'm using version 2.5.X and am trying not to do anything too fancy. However, as I build more services that interact with the database, I am finding myself building lots of these little DAO helpers (PreparedStatementCreators, RowMappers, ResultSetExtractors). With just a small domain (10 or so objects) I am finding myself with over 50 of these little helper classes.
Is there a more compact way to build out these helpers? Are there generic ones that I can inject via XML or something? I feel like I am missing something.
Any advice would be great.