show-sql

Show generated SQL in toplink in eclipse

强颜欢笑 提交于 2020-01-15 06:56:06
问题 I am using EclipseLink libraries in eclipse (at dev time) and deploy on TopLink, I need to show the generated sql statement. I am using the following persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="myPUnit"