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
commit b515d45214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" });