Is it possible to output generated SQL using EclipseLink without having to increase log verbosity?

前端 未结 3 808
迷失自我
迷失自我 2020-12-02 13:36

I want to output the SQL generated by EclipseLink to the console, during development. However, I could only do so using the logging level FINE. I have a complex domain model

3条回答
  •  伪装坚强ぢ
    2020-12-02 13:47

    The log generation for EclipseLink seems quite difficult to set, according to this thread.

    It mentions a persistence.xml file with log level you can adapt:

    
    
    
    
    

    But some other settings may be needed.

    As Martin documents below, "EclipseLink/Examples/JPA/Logging" documents those properties.

提交回复
热议问题