On Fri, May 7, 2010 at 8:21 PM, Maciej Radochonski <mradochon...@gmail.com> wrote: > From technical point of view it is ok, but I would suggest to keep all the > database related code in DAO class, because what are you doing here is > mixing two layers that should be kept separate, BO and DAO.
I couldn't disagree more. :) I think it's totally OK to put transactional logic outside of the data access layer - it keeps the data access code simpler, and it's still trivial to unit test with mocks. Larry --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org