MCPcopy Create free account
hub / github.com/LQF-dev/smart-hr / JpaConfig

Class JpaConfig

back/src/main/java/com/smarthr/config/JpaConfig.java:14–22  ·  view source on GitHub ↗

显式声明 JPA 事务管理器,供默认事务使用(transactionManager)。

Source from the content-addressed store, hash-verified

12 * 显式声明 JPA 事务管理器,供默认事务使用(transactionManager)。
13 */
14@Configuration
15public class JpaConfig {
16
17 @Bean(name = "transactionManager")
18 @Primary
19 public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
20 return new JpaTransactionManager(entityManagerFactory);
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected