Why do I need to configure the SQL dialect of a data source?

前端 未结 11 2120
陌清茗
陌清茗 2020-11-27 13:17

When we configure a data source using Hibernate, we should add the hibernate.dialect property (or eclipselink.target-database if you are using Ecli

11条回答
  •  遥遥无期
    2020-11-27 14:14

    Dialect is the SQL dialect that your database uses.

    List of SQL dialects for Hibernate.

    Either provide it in hibernate.cfg.xml as :

    
       
          org.hibernate.dialect.SQLServerDialect
           ...
       
    
    

    or in the properties file as :

    hibernate.dialect=org.hibernate.dialect.SQLServerDialect
    

提交回复
热议问题