ERROR: HHH000299: Could not complete schema update java.lang.NullPointerException

后端 未结 4 1681
庸人自扰
庸人自扰 2021-01-06 06:05

I have a web application in the following environment.

  • JPA 2.0
  • Spring 3.2.2
  • MySQL 5.6.11
  • Hibernate 4.2.0 CR1
  • Apache Tomca
4条回答
  •  一整个雨季
    2021-01-06 06:08

    It looks like you're incorrectly mixing Hibernate dialects and databases. In your original issue you have a MySQL database and a dialect of org.hibernate.dialect.HSQLDialect (see first code block below).

    In your solution you have the MySQL database and the correct dialect of org.hibernate.dialect.MySQL5Dialect (see second code block below).

    If you had changed the databasePlatform in the original to be the MySQL dialect it would have worked as well.


    Original:

    
      ...
      
        
          ...
          
        
      
      ...
    
    

    Working:

    
      
        ...
        
          ...
                  
          ...
        
      
    
    

提交回复
热议问题