Hi,
I want to change the configuration at runtime ie enable/disable "hibernate.show_sql" property. I see that I can do it thru either xml file or thru configuration object. However, once SessionFactory is created out of configuration object, it will be static forever? Can I can set any properties after SessionFactory is created ? I want to set the "hibernate.show_sql" property after SessionFactory is created. Is this possible? Or do I have to create a new SessionFactory everytime, I change the configuration object?
Thanks for your help.
|