Quando executo a main aparece o seguinte erro:
Erro
jan. 07, 2022 11:07:05 AM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation INFO: HHH000204: Processing PersistenceUnitInfo [name: loja] jan. 07, 2022 11:07:05 AM org.hibernate.Version logVersion INFO: HHH000412: Hibernate ORM core version 5.4.27.Final jan. 07, 2022 11:07:06 AM org.hibernate.annotations.common.reflection.java.JavaReflectionManager INFO: HCANN000001: Hibernate Commons Annotations {5.1.2.Final} jan. 07, 2022 11:07:06 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure WARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!) jan. 07, 2022 11:07:06 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH10001005: using driver [org.postgresql.Driver] at URL [jdbc:postgresql:loja] jan. 07, 2022 11:07:06 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH10001001: Connection properties: {password=****, user=postgres} jan. 07, 2022 11:07:06 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH10001003: Autocommit mode: false jan. 07, 2022 11:07:06 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections INFO: HHH000115: Hibernate connection pool size: 20 (min=1) jan. 07, 2022 11:07:06 AM org.hibernate.dialect.Dialect INFO: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect jan. 07, 2022 11:07:06 AM org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService INFO: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] Exception in thread "main" java.lang.IllegalArgumentException: Unknown entity: org.hibernate.internal.SessionImpl at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:723) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:706) at br.com.alura.loja.testes.CadastroDeProduto.main(CadastroDeProduto.java:22)
Alguem pode me ajudar?