Is there a way to programatically get Hibernate configuration parameter values, if I have access to a SessionFactory object?
I would like to list the configuration in a GUI view, for debuging purposes.
Is there a way to programatically get Hibernate configuration parameter values, if I have access to a SessionFactory object?
I would like to list the configuration in a GUI view, for debuging purposes.
If you cast your SessionFactory
into the concrete SessionFactoryImpl
implementation, then you'll have access to the properties coming from the Configuration
through getProperties()
.