@Bean @ConditionalOnMissingBean public JpaVendorAdapter jpaVendorAdapter() { AbstractJpaVendorAdapter adapter = createJpaVendorAdapter(); adapter.setShowSql(this.properties.isShowSql()); adapter.setDatabase(this.properties.getDatabase()); adapter.setDatabasePlatform(this.properties.getDatabasePlatform()); adapter.setGenerateDdl(this.properties.isGenerateDdl()); return adapter; }
@Override protected AbstractJpaVendorAdapter createJpaVendorAdapter() { LOGGER.info("PersistenceConfiguration.createJpaVendorAdapter()"); EclipseLinkJpaVendorAdapter jpaVendorAdapter = new EclipseLinkJpaVendorAdapter(); jpaVendorAdapter.setShowSql(true); return jpaVendorAdapter; }
@Bean @ConditionalOnMissingBean public JpaVendorAdapter jpaVendorAdapter() { AbstractJpaVendorAdapter adapter = createJpaVendorAdapter(); adapter.setShowSql(this.jpaProperties.isShowSql()); adapter.setDatabase(this.jpaProperties.getDatabase()); adapter.setDatabasePlatform(this.jpaProperties.getDatabasePlatform()); adapter.setGenerateDdl(this.jpaProperties.isGenerateDdl()); return adapter; }
@Override protected AbstractJpaVendorAdapter createJpaVendorAdapter() { return new EclipseLinkJpaVendorAdapter() { private final HawkBitEclipseLinkJpaDialect jpaDialect = new HawkBitEclipseLinkJpaDialect(); @Override public EclipseLinkJpaDialect getJpaDialect() { return jpaDialect; } }; }
@Override protected AbstractJpaVendorAdapter createJpaVendorAdapter() { return new EclipseLinkJpaVendorAdapter(); }
protected JpaVendorAdapter createJpaVendorAdapter() { AbstractJpaVendorAdapter adapter = new HibernateJpaVendorAdapter(); adapter.setShowSql(isShowSql()); return adapter; }
@Override protected AbstractJpaVendorAdapter createJpaVendorAdapter() { return new HibernateJpaVendorAdapter(); }
@Override protected AbstractJpaVendorAdapter createJpaVendorAdapter() { EclipseLinkJpaVendorAdapter adapter = new EclipseLinkJpaVendorAdapter(); return adapter; }
protected abstract AbstractJpaVendorAdapter createJpaVendorAdapter();