java.lang.Object
com.foreach.across.modules.hibernate.jpa.AcrossHibernateJpaModule.AcrossHibernateJpaModuleBuilder
Enclosing class:
AcrossHibernateJpaModule
public static class AcrossHibernateJpaModule.AcrossHibernateJpaModuleBuilder
extends Object
Builder for creating a custom
AcrossHibernateJpaModule
.
If you only specify a
prefix
all other values will get generated defaults.
Consider prefix
foo :
module name would be FooJpaModule
properties would be prefixed with foo.jpa
datasource bean with name fooDataSource would be looked for
created beans would be exposed with a foo prefix, fi the transaction manager bean
would be accessible as fooJpaTransactionManager
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Datasource instance that the entity manager should use.
Name of the datasource bean the entity manager should use.
Bean name prefix to apply to the beans being exposed.
Name of the generated module.
Custom name of the persistence unit that is being managed.
General prefix with which to create defaults for fields not explicitly set.
Should the exposed beans from this module be marked as primary.
Prefix that all properties for this module should have.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
AcrossHibernateJpaModuleBuilder
public AcrossHibernateJpaModuleBuilder ()
Method Details
build
Returns:
built module
prefix
General prefix with which to create defaults for fields not explicitly set.
Returns:
this
.
moduleName
Name of the generated module.
Returns:
this
.
exposePrefix
Bean name prefix to apply to the beans being exposed.
Returns:
this
.
propertiesPrefix
Prefix that all properties for this module should have.
Returns:
this
.
primary
Should the exposed beans from this module be marked as primary.
Returns:
this
.
dataSource
Datasource instance that the entity manager should use.
Returns:
this
.
dataSourceName
Name of the datasource bean the entity manager should use.
Returns:
this
.
persistenceUnitName
Custom name of the persistence unit that is being managed.
Returns:
this
.