Yes, set the persistence.xml property <property name="toplink.logging.level" value="FINEST"/>. This will show you all the debug statements for TopLink.
What the query will look like is a 'select' selecting the PK of the Entity instance based on the Entity instance's PK (SELECT EMP_ID FROM EMPLOYEE WHERE EMP_ID = 2).
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]
http://forums.java.net/jive/thread.jspa?messageID=249735