@Configuration public class SpringHibernateConfiguration extends Object
| Constructor and Description |
|---|
SpringHibernateConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
createFactoryBean() |
DataSource |
dataSource() |
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
entityManager() |
protected void |
initJtaPlatform(org.springframework.transaction.jta.JtaTransactionManager platformTransactionManager) |
protected Properties |
jpaProperties() |
org.springframework.transaction.jta.JtaTransactionManager |
jtaTransactionManager() |
TransactionManager |
transactionManager() |
protected boolean |
useJta() |
UserTransaction |
userTransaction() |
@Bean
@Qualifier(value="brainslug")
public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManager()
throws Throwable
Throwableprotected org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean createFactoryBean()
protected void initJtaPlatform(org.springframework.transaction.jta.JtaTransactionManager platformTransactionManager)
protected boolean useJta()
protected Properties jpaProperties()
@Bean public DataSource dataSource()
@Bean public UserTransaction userTransaction() throws Throwable
Throwable@Bean(destroyMethod="close",
initMethod="init")
public TransactionManager transactionManager()
throws Throwable
ThrowableCopyright © 2015. All rights reserved.