code: public static HibernateJpaVendorAdapter newHibernateJpaVendorAdapter(final DatabaseProperties databaseProperties) {
          val bean = new HibernateJpaVendorAdapter();
          bean.setGenerateDdl(databaseProperties.isGenDdl());
          bean.setShowSql(databaseProperties.isShowSql());
          return bean;
      }
docs: New hibernate jpa vendor adapter.
  
  @param databaseProperties the database properties
  @return the hibernate jpa vendor adapter