Hello,
In our previous Database access framework which we used before using hibernate, we were able to log complete queries with a custom PreparedStatement implementation, such as described
here.
I know
this page, especially option does org.hibernate.type does something similair, but the Loggablestatement solution is still more elegant I think.
I have done some research (in Hibernate 3.0.5), if it is possible to integrate the LoggableStatement in hibernate. I think it is possible, by making a custom implementation of both default Batchers (e.g. NonBatchingBatcher and BatchingBatcher class). Is this really the only way, or are there more simple ways to get this done?