Olá Pessoal, apesar de eu ter colocado no persistence.xml a opção de criar as tabelas, o hibernate não está criando. O que poderia estar de errado?
Obrigado!
Hibernate: select dre0_.id as id1_6_, dre0_.descricao as descrica2_6_, dre0_.nome as nome3_6_, dre0_.status as status4_6_ from dres dre0_
2019-05-31 15:17:25,826 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] SQL Error: 1146, SQLState: 42S02
2019-05-31 15:17:25,826 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] Table 'sdp.dres' doesn't exist
2019-05-31 15:17:25,830 ERROR [br.com.sdp.util.jsf.JsfExceptionHandler] Erro de sistema: /assuntos/CadastroAssunto.xhtml @13,85 listener="#{cadastroAssuntoBean.inicializar}": javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
javax.el.ELException: /assuntos/CadastroAssunto.xhtml @13,85 listener="#{cadastroAssuntoBean.inicializar}": javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'sdp.dres' doesn't exist