This commit is contained in:
amit2103 2019-06-23 23:32:05 +05:30
parent 9d7d7b4dde
commit 69d6c80a49
1 changed files with 1 additions and 1 deletions

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