views:

22

answers:

2

I want to see why my Nuxeo installation is failing when I point its SQL user directory to other database (Oracle says: table/view doesn't exists). I want to enable show_sql Hibernate parameter to see the sql in the console.. but I don't know where I can do it (if I can).

+1  A: 

You can set in your persistance xml like this:

...
<property name="properties">
            <value>
                hibernate.hbm2ddl.auto=...
                hibernate.show_sql=true

                hibernate.dialect=...
                hibernate.connection.driver_class=...
                hibernate.connection.url=...
                hibernate.connection.username=...
                hibernate.connection.password=...

            </value>
</property>
...
Zoltan Balazs
A: 

If you don't have access to the persistence xml from your installation, you could try using a tool like p6spy. It logs all the queries that are performed by your application. The other option is to enable query logging on your oracle installation.

Kurt Du Bois