Merge pull request #7178 from amit2103/BAEL-14274-11

[BAEL-14274] - Fixed article code for https://www.baeldung.com/transa…
This commit is contained in:
Loredana Crusoveanu
2019-07-17 15:39:08 +03:00
committed by GitHub

View File

@@ -39,7 +39,7 @@ public class PersistenceJPAConfig {
// beans
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
public LocalContainerEntityManagerFactoryBean entityManagerFactoryBean() {
final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
em.setDataSource(dataSource());
em.setPackagesToScan(new String[] { "com.baeldung.persistence.model" });