Module hivetranse.hibernate3
Back to master index

[public] Service Point hivetranse.hibernate3.SessionFactory Interface: org.apache.hivemind.ServiceImplementationFactory
Factory to create Hibernate Session proxies to be used in the context of transactions managed by TransactionService.
Parameters occurs: 1
Parameters Schema
Element <config>
One unique config element describes the configuration that will be used to build the Hibernate SessionFactory used to create Hibernate Sessions.
Attribute configuration-id Translator: configuration
Optional configuration point id. The configuration must use the schema "HibernateSettingsSchema".
Attribute file Translator: resource
Location of Hibernate XML configuration file.
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.
Nested Elements
One unique config element describes the configuration that will be used to build the Hibernate SessionFactory used to create Hibernate Sessions.
<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" />
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" />
Conversion Rules
<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" />
Implementation
  • <invoke-factory service-id="hivemind.BuilderFactory" model="primitive" >
    • <construct class="net.sourceforge.hivetranse.transaction.hibernate3.SessionProxyFactory" >
      • <log />
      • <service />
      • <service />
      </construct>
    </invoke-factory>

Module hivetranse.hibernate3
Back to master index