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

前端 未结 11 2140
陌清茗
陌清茗 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 13:58

    Dialect property is used by hibernate in following ways

    1. To generate Optimized SQL queries.
    2. If you have more than one DB then to talk with particular DB you want.
    3. To set default values for hibernate configuration file properties based on the DB software we use even though they are not specifed in configuration file.

提交回复
热议问题