I want to write a blog about hibernate, so I’m going to start from the beginning and download the latest stable version from the official website
Results the following problem occurs when using hibernate to create tables automatically
I am very puzzled that this problem did not occur with the lower version before
So, I copied all the necessary files to the previous hibernate version 5.0.7 project, and there was no problem
Therefore, it is determined that it is the hibernate version problem( After checking the type = “XXX”, I found that it should be the problem of hibernate and MySQL version coordination. In the older version, the old dialect is still supported, but in the new version, the new dialect is required.)
Before change:
After change:
The dialect is correct
And in the process of exploration, I found a lot of dialects in
under the hibernate core package. It seems that I have detailed support for each version
Similar Posts:
- [Solved] Hibernate database dialect configuration; no dialect mapping for jdbc type:-9; Rare words
- jpa–No Persistence provider for EntityManager named xx
- [Solved] org.hibernate.MappingException: Unknown entity
- [Solved] MYSQL Error: this authentication plugin is not supported
- Solve the error of springboot failed to load ApplicationContext
- How hibernate 3 used in jbpm4.4 is compatible with spring 5.X and the exception caused by: java.lang.classnotfoundexception: org.hibernate.impl.sessionimpl
- Springboot import JPA Error: a bean named ‘entityManagerFactory’ that could not be found
- Hibernate reports an error. The configured sessionfactory cannot be found
- Django: How to Solve Using Pymysql Error
- [Solved] ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.