'hibernate.dialect' must be set when no Connection available error

前端 未结 9 1921
误落风尘
误落风尘 2021-02-20 01:22

I am getting the following error when using Hibernate:

\'hibernate.dialect\' must be set when no Connection available

And I am using a datasource fo

9条回答
  •  长发绾君心
    2021-02-20 01:42

    You need to set the property

    hibernate.dialect
    

    In the hibernate (persistence.xml or bean declaration) configuration, the value depends on your database, for example:

    Postgres: org.hibernate.dialect.PostgreSQL82Dialect
    Oracle: org.hibernate.dialect.Oracle10gDialect
    

    All posible options are listen here

    For example, a sample persistence.xml looks like:

    
        ...
        
            ...
            
            ...
        
    
    

提交回复
热议问题