One unique config element describes the configuration that will
be used to build the Hibernate SessionFactory used to create
Hibernate Sessions.
Attribute file | Translator: | resource |
Location of Hibernate XML configuration file. |
Attribute configuration-id | Translator: | configuration |
Optional configuration point id. The configuration must use
the schema "HibernateSettingsSchema". |
Attribute interceptor | Translator: | object |
Optional object (service, instance...) implementing Hibernate
Interceptor interface. This object will be set as the Hibernate
Interceptor for this SessionFactory. |
Attribute naming-strategy | Translator: | object |
Optional object (service, instance...) implementing Hibernate
NamingStrategy interface. This object will be set as the Hibernate
NamingStrategy for this SessionFactory. |
Element <property> |
property elements can be used to define more specific
Hibernate properties, such as database url, user or password.
HiveMind Symbol substitution can be used here to "externalize"
definition of some properties and make them easier to modify. |
Attribute name (required) (unique) | Translator: | string |
Attribute value (required) | Translator: | string |
Conversion Rules |
<create-object class="net.sourceforge.hiveutils.collections.NameValuePair"
/>
<read-attribute attribute="name"
property="name"
/>
<read-attribute attribute="value"
property="value"
/>
<invoke-parent method="addProperty"
/>
|
<create-object class="net.sourceforge.hivetranse.transaction.hibernate3.SessionFactoryContribution"
/>
<read-attribute attribute="file"
property="config"
/>
<read-attribute attribute="configuration-id"
property="settings"
/>
<read-attribute attribute="interceptor"
property="interceptor"
/>
<read-attribute attribute="naming-strategy"
property="naming-strategy"
/>
<invoke-parent method="addElement"
/>