Sparrow wrote:
I must be missing something.
Why the heck do you need to build a custom ClassPersister? What is wrong with just running the HQL or SQL update statement?
What I want is for Hibernate to do all my reads and to maintain the lifecycle of my balance classes in pretty much every detail
except when it comes time to update them. I want to do my own updating, but for preference I would like to do this when the transaction is committed, rather than having to put an extra method call after each call to Session.save().
It seems to me that the ideal way to handle this is by extending one of the existing ClassPersisters and overriding update(). Or perhaps I'm barking up the wrong tree, hence this question.
Cheers,
Luke