Find Database Name Hibernate Session Object Debug Eclipse
If you are working with Hibernate and while debugging the code you want to find which database its using from its session object you could do below:
Grab Session object from debug window –> jdbcConnectionAccess –> connectionProvider –> datasource –> connectionPoolDataSource –> nestedDataSource and expand it you will find database information: