Put the following properties in your persistence.xml
:
<property name="eclipselink.logging.level.sql" value="FINE"/>
<property name="eclipselink.logging.parameters" value="true"/>
The latter is helpful, so that the values of the parameter are shown.
An alternative is using log4jdbc or log4jdbc-remix.
Related Contents:
- What is referencedColumnName used for in JPA?
- JPA Enum ORDINAL vs STRING
- No operator matches the given name and argument type(s). You might need to add explicit type casts. — Netbeans, Postgresql 8.4 and Glassfish
- Are SQL injection attacks possible in JPA?
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- What’s the difference between JPA and Hibernate? [closed]
- How to map a composite key with JPA and Hibernate?
- Map enum in JPA with fixed values?
- When and why JPA entities should implement the Serializable interface?
- Please explain about insertable=false and updatable=false in reference to the JPA @Column annotation
- What’s the difference between JPA and Spring Data JPA?
- Hibernate Annotations – Which is better, field or property access?
- JPA CascadeType.ALL does not delete orphans
- What is Persistence Context?
- How to annotate MYSQL autoincrement field with JPA annotations
- What is the difference between persist() and merge() in JPA and Hibernate?
- How to map calculated properties with JPA and Hibernate
- JPQL IN clause: Java-Arrays (or Lists, Sets…)?
- Do I need elements in persistence.xml?
- JPA: How to have one-to-many relation of the same Entity type
- Specifying an Index (Non-Unique Key) Using JPA
- How to remove entity with ManyToMany relationship in JPA (and corresponding join table rows)?
- Parameter in like clause JPQL
- Clarifying terminology – What does “hydrating” a JPA or Hibernate entity mean when fetching the entity from the DB
- Create JPA EntityManager without persistence.xml configuration file
- What is the “owning side” in an ORM mapping?
- JPA: how do I persist a String into a database field, type MYSQL Text
- Multiple unique constraints in JPA
- JPA – Persisting a One to Many relationship
- java.lang.IllegalArgumentException: Removing a detached instance com.test.User#5
- kotlin data class + bean validation jsr 303
- JPA vs ORM vs Hibernate?
- What is the solution for the N+1 issue in JPA and Hibernate?
- Getting Database connection in pure JPA setup
- Difference between @Size, @Length and @Column(length=value) when using JPA and Hibernate
- How to clone a JPA entity
- Detach an entity from JPA/EJB3 persistence context
- JPA passing list to IN clause in named native query
- Spring Data JPA And NamedEntityGraphs
- How To Define a JPA Repository Query with a Join
- How to map a map JSON column to Java Object with JPA
- Eclipse does not recognize content of persistence.xml
- Disable caching in JPA (eclipselink)
- IntelliJ IDEA highlights @Entity class names with “Cannot resolve symbol” in JPQL
- JPA/Hibernate Native Queries do not recognize Parameters
- JPA Criteria API: how to express literal true and literal false?
- Testing an EJB with JUnit
- What is the exact meaning of the JPA @Entity annotation?
- I found JPA, or alike, don’t encourage DAO pattern
- @ManyToMany(mappedBy = “foo”)