Dude, I'm still not sure I understood what is wrong :-)
Quote:
However because the hibernate (orm) pattern disolves away the insert/update/delete methods on the dao api (leaving just finders) there is nothing for me to use as a hook to mock.
Hibernate doesn't forces you to use the insert/update/delete methods outside the DAO (ie: in your business components). I mean, you can certainly have something like:
Code:
Business => processPayment
DAO => findByAccountNo
Hibernate => query.list()
DAO => insertPaymentRecord
Hibernate => insert()
DAO => updateBalance
Hibernate => update()
So, your business keeps free from the implementation details of the DAO, enabling you to have N implementations of it. What am I missing? :-)