该驱动程序/数据库连接的休眠方言是什么?

时间:2018-10-17 13:23:35

标签: spring-boot spring-data-jpa spring-data jpa-2.0

我刚刚收到一些使用Spring Boot / Spring DAta / JPA连接到数据库的要求。这是网址:

jdbc:compositesw:dbapi@XXXXXXXXXXX:XXXX?domain=twccorp&dataSource=SFDC&connectTimeout=120

这里是司机:

cs.jdbc.driver.CompositeDriver

这是我的application.properties(为安全起见,省略了这些值):

 spring.datasource.url = 'same as above'
 spring.datasource.username = xxxxxxx
 spring.datasource.password = xxxxxxx
 spring.datasource.driverClassName = 'same as above'

这里是日志:

  o.h.e.j.e.i.JdbcEnvironmentInitiator     : HHH000342: Could not obtain connection to query metadata : Unable to determine Dialect to use [name=composite, majorVersion=7]; user must register resolver or explicitly set 'hibernate.dialect'
  2018-10-17 10:08:06.008  WARN 1232 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service 

我要感谢能够提供帮助的人。

1 个答案:

答案 0 :(得分:0)

我也遇到过同样的问题。

由于无法使用特定于复合语言的方言,因此我使用了org.hibernate.dialect.Oracle10gDialect方言。

工作正常。