Meu arquivo pom.xml está assim:
project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> modelVersion>4.0.0 groupId>br.com.alura artifactId>lojacursomaven version>0.0.1-SNAPSHOT
build> plugins> plugin> groupId>org.apache.maven.plugins artifactId>maven-compiler-plugin version>3.8.0 configuration> release>11 /configuration> /plugin> /plugins> /build>
dependencies>
dependency>
groupId>org.hibernate</groupId>
artifactId>hibernate-entitymanager</artifactId>
version>5.4.27.Final</version>
/dependency>
dependency>
groupId>mysql</groupId>
artifactId>mysql-connector-java</artifactId>
version>8.0.32</version>
/dependency>
/dependencies> /project>
porém, quando rodo a classe de para cadastrar produtos, recebo todas essas exceptions:
java.lang.IllegalStateException: Cannot get a connection as the driver manager is not properly initialized Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] Caused by: org.hibernate.exception.SQLGrammarException: Error calling Driver#connect Caused by: java.sql.SQLSyntaxErrorException: Unknown database 'lojacursomaven'
Alguém poderia me auxiliar?