views:

16

answers:

1

I'm looking for a list of hibernate configuration settings with the defaults listed.

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.

+1  A: 

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...

Brian Deterling
Yeah, I kind of thought this was the case. Of course, that's completely unhelpful (not your fault). It doesn't matter how the code implements the configuration - from a user's perspective there are still default configurations that should be documented.
Ken Liu