Hi, I would like to be able to programatically get to the HQL or EJBQL string that is inside javax.persistence.Query. If I create a new Query, I can't seem to do that.
The rationale for doing so is that I have a class that builds up a query programatically depending on user input passed in. I would like to unit-test that it does the right thing, so I would like to do a string compare on the Query object it creates in the test.
Is there some means to get at this information programatically? I read some information on how one can tune log4j to see this info on the console, but this is not what I need.
Thx in advance,
Davis
|