Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

ERROR user lacks privilege or object not found: USUARIO

Ao tentar rodar a classe de teste ocorreu o erro "user lacks privilege or object not found: USUARIO"

Segue abaixo o log do Console:

mai 02, 2020 3:51:27 PM org.hibernate.annotations.common.Version INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} mai 02, 2020 3:51:27 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {4.1.7.Final} mai 02, 2020 3:51:27 PM org.hibernate.cfg.Environment INFO: HHH000206: hibernate.properties not found mai 02, 2020 3:51:27 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: HHH000021: Bytecode provider name : javassist mai 02, 2020 3:51:28 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!) mai 02, 2020 3:51:28 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000115: Hibernate connection pool size: 20 mai 02, 2020 3:51:28 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000006: Autocommit mode: false mai 02, 2020 3:51:28 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000401: using driver [org.hsqldb.jdbcDriver] at URL [jdbc:hsqldb:caelum.db;shutdown=true] mai 02, 2020 3:51:28 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000046: Connection properties: {user=sa, password=****} 2020-05-02T15:51:53.811-0300 WARN SQL Error: -5501, SQLState: 42501 2020-05-02T15:51:53.813-0300 ERROR user lacks privilege or object not found: USUARIO

1 resposta
solução!

Eu descobri o problema.

Antes de rodar o teste, é necessário executar a classe "CriaTabelas". Fazendo isto primeiro, o banco de dados da aula é criado corretamente.