@Configuration
@EnableTransactionManagement(proxyTargetClass=true)
public class DatabaseConfig
extends java.lang.Object
implements org.springframework.transaction.annotation.TransactionManagementConfigurer
| Constructor and Description |
|---|
DatabaseConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.transaction.PlatformTransactionManager |
annotationDrivenTransactionManager() |
javax.sql.DataSource |
dataSource() |
org.springframework.orm.jpa.JpaDialect |
jpaDialect() |
org.springframework.orm.jpa.JpaVendorAdapter |
jpaVendorAdapter() |
org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManagerFactory> |
localEntityManagerFactoryBean() |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
@Bean public javax.sql.DataSource dataSource()
@Bean public org.springframework.orm.jpa.JpaDialect jpaDialect()
@Bean public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
@Bean public org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManagerFactory> localEntityManagerFactoryBean()
@Bean public org.springframework.transaction.PlatformTransactionManager transactionManager()
public org.springframework.transaction.PlatformTransactionManager annotationDrivenTransactionManager()
annotationDrivenTransactionManager in interface org.springframework.transaction.annotation.TransactionManagementConfigurerCopyright © 2014. All Rights Reserved.