I am doing what you mentioned and I can see the sql and binding parameters in my logs but what I am trying to accomplish is get the sql query dynamically and execute the "EXPLAIN PLAN" on it through my test cases. Something like below
satement.execute("EXPLAIN PLAN FOR XXXXXX");
where XXXXXX is the sql query from hibernate
Always! Wait. Never. Shut up. Look at this tiny ad.
the new thread boost feature brings a LOT of attention to your favorite threads