开发者

Where can I find a list of Hibernate default configuration settings?

I'm looking for a list of hibernate configuration settings with the defaults lis开发者_如何学Cted.

I found a good list of settings here: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html

...but the default settings are not listed.


It looks like Hibernate doesn't load up a set of defaults, but lets each bit of functionality determine the default if the property is not overridden. For example DEFAULT_ENTITY_MODE is POJO, but the only way to find that is to search everywhere for the property and trace back to what happens if the property is not assigned.

The source to SettingsFactory uses defaults on a lot of PropertiesHelpers.get... calls. The buildSettings method in that class has a lot of what you need. Also, dialects set some other defaults using getDefaultProperties().setProperty...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜