If you're just looking to get logging data, you can just set the
'openjpa.Log' property to 'SQL=TRACE'.

However, getDatastoreActions() should return the strings. Can you post
the code corresponding code snippet? Also, what happens if you do
((OpenJPAQuery) myQuery).compile() before trying to get the actions?
(I don't have the source in front of me right now, so that's a bit of
a shot in the dark.)

-Patrick

On 7/5/07, Daniel Migowski <[EMAIL PROTECTED]> wrote:
Hi OpenJPA users,

Is there a wy to get the SQL the would be executed, if I execute a
JPQL-query? The method (OpenJPAQuery)myQuery).getDatastoreActions()
always returns an empty String array.

With best regards,
Daniel Migowski



--
Patrick Linskey
202 669 5907

Reply via email to