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

前端 未结 3 817
迷失自我
迷失自我 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 13:58

    Put the following properties in your persistence.xml:

     
     
    

    The latter is helpful, so that the values of the parameter are shown.

    An alternative is using log4jdbc or log4jdbc-remix.

提交回复
热议问题