I (and Fowler ;) think: (most of the time) it's reasonable to move logicto DB as much as possible!so... consider brokers (such as Apache iBATIS) too ! ;-)