Skip to content

Commit

Permalink
Fix failing JPA rest test: don't set hibernate dialect hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jul 17, 2024
1 parent c0481e7 commit 057a08c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.Database;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;
Expand Down Expand Up @@ -55,7 +54,6 @@ public EntityManagerFactory entityManagerFactory(DataSource dataSource) {
HibernateJpaVendorAdapter hibernateJpaVendorAdapter = new HibernateJpaVendorAdapter();
hibernateJpaVendorAdapter.setShowSql(false);
hibernateJpaVendorAdapter.setGenerateDdl(true);
hibernateJpaVendorAdapter.setDatabase(Database.H2);
entityManagerFactoryBean.setJpaVendorAdapter(hibernateJpaVendorAdapter);
entityManagerFactoryBean.afterPropertiesSet();
return entityManagerFactoryBean.getObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public ProcessEngineConfigurationImpl processEngineConfiguration(SpringIdmEngine
processEngineConfiguration.setAsyncExecutorActivate(false);
processEngineConfiguration.setJpaEntityManagerFactory(entityManagerFactory);
processEngineConfiguration.setJpaHandleTransaction(false);
processEngineConfiguration.setJpaHandleTransaction(false);
processEngineConfiguration.setHistoryLevel(HistoryLevel.FULL);
processEngineConfiguration.setIdmEngineConfigurator(springIdmEngineConfigurator);
return processEngineConfiguration;
Expand Down

0 comments on commit 057a08c

Please sign in to comment.