@Marker(value=HibernateCore.class) public class HibernateCoreModule extends Object
Session
.Constructor and Description |
---|
HibernateCoreModule() |
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) |
public HibernateCoreModule()
public static void bind(ServiceBinder binder)
public static void contributeFactoryDefaults(MappedConfiguration<String,String> configuration)
public static void contributeRegistryStartup(OrderedConfiguration<Runnable> configuration, @Symbol(value="tapestry.hibernate.early-startup") boolean earlyStartup, HibernateSessionSource sessionSource)
public static HibernateEntityPackageManager buildHibernateEntityPackageManager(Collection<String> packageNames)
@Scope(value="perthread") public static HibernateSessionManager buildHibernateSessionManager(HibernateSessionSource sessionSource, PerthreadManager perthreadManager)
public static org.hibernate.Session buildSession(HibernateSessionManager sessionManager, PropertyShadowBuilder propertyShadowBuilder)
public static void contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> config, @Local HibernateConfigurer defaultHibernateConfigurer)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.