org.apache.tapestry5.hibernate.modules

## Class HibernateCoreModule

- java.lang.Object
- - org.apache.tapestry5.hibernate.modules.HibernateCoreModule

-     @Marker(value=HibernateCore.class)
      public class HibernateCoreModule
      extends Object

  Defines core services that support initialization of Hibernate and access to the Hibernate `Session`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HibernateCoreModule()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `bind(ServiceBinder binder)`
    `static HibernateEntityPackageManager` | `buildHibernateEntityPackageManager(Collection<String> packageNames)`
    `static HibernateSessionManager` | `buildHibernateSessionManager(HibernateSessionSource sessionSource, PerthreadManager perthreadManager)` The session manager manages sessions on a per-thread/per-request basis.
    `static org.hibernate.Session` | `buildSession(HibernateSessionManager sessionManager, PropertyShadowBuilder propertyShadowBuilder)`
    `static void` | `contributeFactoryDefaults(MappedConfiguration<String,String> configuration)`
    `static void` | `contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> config, HibernateConfigurer defaultHibernateConfigurer)` Adds the following configurers: Default performs default hibernate configuration PackageName loads entities by package name
    `static void` | `contributeRegistryStartup(OrderedConfiguration<Runnable> configuration, boolean earlyStartup, HibernateSessionSource sessionSource)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HibernateCoreModule

          public HibernateCoreModule()

  - ### Method Detail

    - #### bind

          public static void bind(ServiceBinder binder)

    - #### contributeFactoryDefaults

          public static void contributeFactoryDefaults(MappedConfiguration<String,String> configuration)

    - #### contributeRegistryStartup

          public static void contributeRegistryStartup(OrderedConfiguration<Runnable> configuration,
                                                       @Symbol(value="tapestry.hibernate.early-startup")
                                                       boolean earlyStartup,
                                                       HibernateSessionSource sessionSource)

    - #### buildHibernateEntityPackageManager

          public static HibernateEntityPackageManager buildHibernateEntityPackageManager(Collection<String> packageNames)

    - #### buildHibernateSessionManager

          @Scope(value="perthread")
          public static HibernateSessionManager buildHibernateSessionManager(HibernateSessionSource sessionSource,
                                                                                                       PerthreadManager perthreadManager)

      The session manager manages sessions on a per-thread/per-request basis. Any active transaction will be rolled back at thread cleanup time. The thread is cleaned up automatically in a Tapestry web application.

    - #### buildSession

          public static org.hibernate.Session buildSession(HibernateSessionManager sessionManager,
                                                           PropertyShadowBuilder propertyShadowBuilder)

    - #### contributeHibernateSessionSource

          public static void contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> config,
                                                              @Local
                                                              HibernateConfigurer defaultHibernateConfigurer)

      Adds the following configurers:
      Default
        performs default hibernate configuration
      PackageName
        loads entities by package name

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.