I want to do audit logging generated SQL statements in Hibernate. I wrote Custom Interceptor that extents EmptyInterceptor. I overrided onPrepareStatement method to get generated SQL. But When I debug this code I am only getting generated SQL without parameters like this.
INSERT INTO TableA(Col1,Col2,Col3) VALUES(?,?,?)
How can I get full SQL statement that contains parameter values like this from Hibernate
INSERT INTO TableA(Col1,Col2,Col3) VALUES("Value1","Value2","Value3")