开发者

List Hibernate configuration parametrs

开发者 https://www.devze.com 2023-01-05 06:52 出处:网络
Is there a way to programatically get Hibernate configuration parameter values, if I have access to a SessionFactory object?

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 configuratio开发者_如何学Pythonn 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().

0

精彩评论

暂无评论...
验证码 换一张
取 消