3
respostas

The 8.1.0 version for

HHH000511: The 8.1.0 version for [org.hibernate.dialect.MariaDBDialect] is no longer supported, hence certain features may not work properly. The minimum supported version is 10.3.0. Check the community dialects project for available legacy versions.

Alguém levou esse erro aqui?

3 respostas

E aí, Kassio!

Então, o que tu pode fazer é dar um upgrade na versão do teu Hibernate para pelo menos a 10.3.0. Isso geralmente resolve esses pepinos de incompatibilidade.

Pra isso, dá uma olhada nas dependências do teu projeto, especialmente aquelas relacionadas ao Hibernate e ao MariaDB. Ajusta as versões no teu arquivo de configuração ou gerenciador de dependências.

Se precisar de ajuda específica com as dependências ou com a configuração, é só dar um toque.

Opa bom dia!

Cara continua. inclusive no arquivo properties eu coloquei assim spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB106Dialect pra puxar o dialect mais recente. o hibernate está no 6.3.1.Final e ele continua dando esse erro.

Agora ele roda assim, mas nada acontece no bd.

2023-12-08T14:07:10.787-03:00 INFO 899 --- [ main] b.c.a.spring.data.SpringDataApplication : Starting SpringDataApplication using Java 21.0.1 with PID 899 (/Users/kassiocarvalho/spring-data/target/classes started by kassiocarvalho in /Users/kassiocarvalho/spring-data) 2023-12-08T14:07:10.791-03:00 INFO 899 --- [ main] b.c.a.spring.data.SpringDataApplication : No active profile set, falling back to 1 default profile: "default" 2023-12-08T14:07:11.790-03:00 INFO 899 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2023-12-08T14:07:11.826-03:00 INFO 899 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19 ms. Found 0 JPA repository interfaces. 2023-12-08T14:07:12.655-03:00 INFO 899 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2023-12-08T14:07:12.794-03:00 INFO 899 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.3.1.Final 2023-12-08T14:07:12.883-03:00 INFO 899 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2023-12-08T14:07:13.527-03:00 INFO 899 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2023-12-08T14:07:13.580-03:00 INFO 899 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2023-12-08T14:07:14.308-03:00 INFO 899 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@60f21960 2023-12-08T14:07:14.312-03:00 INFO 899 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2023-12-08T14:07:14.993-03:00 INFO 899 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2023-12-08T14:07:15.321-03:00 INFO 899 --- [ main] b.c.a.spring.data.SpringDataApplication : Started SpringDataApplication in 5.47 seconds (process running for 6.668) 2023-12-08T14:07:15.331-03:00 INFO 899 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2023-12-08T14:07:15.334-03:00 INFO 899 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2023-12-08T14:07:15.343-03:00 INFO 899 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.