Paul,
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