an idea:
use
in persistence.xml and configure logging to catch the statements.
Reply to this message by going to Community
Start a new discussion in JBoss AS 7 Development at Community