java - Spring boot Hibernate Teradata Unable to determine Dialect to use -
application.properties :
spring.jpa.database-platform=org.hibernate.dialect.teradatadialect
data source bean :
@bean public datasource datasource() { return datasourcebuilder .create() .driverclassname("com.teradata.jdbc.teradriver") .username("dbc") .password("dbc") .url("jdbc:teradata://name/dbc") .build(); }
but getting error :
caused by: org.hibernate.hibernateexception: access dialectresolutioninfo cannot null when 'hibernate.dialect' not set
try removing datasource bean java config , let spring-boot initilize datasource providing more properties in apllication.properties:
#datasource configuration spring.datasource.driverclassname=com.teradata.jdbc.teradriver spring.datasource.url=jdbc:teradata://name/dbc spring.datasource.username=dbc spring.datasource.password=dbc #jpa/hibernate spring.jpa.database-platform=org.hibernate.dialect.teradatadialect
Comments
Post a Comment