Ao tentar deletar o tópico pelo Postman, aparece um erro de sql statement. Por que busca a tabela TOPIC_RESPONSES?
Resposta no Postman: { "timestamp": "2022-06-29T16:31:24.616982182", "status": 500, "error": "INTERNAL_SERVER_ERROR", "message": "could not prepare statement; SQL [delete from topic_responses where topic_id=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement", "path": "/topics/1" }
Resposta no Terminal:
Hibernate: delete from topic_responses where topic_id=? 2022-06-29 15:57:54.864 WARN 44705 --- [nio-8080-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 42102, SQLState: 42S02 2022-06-29 15:57:54.864 ERROR 44705 --- [nio-8080-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : Table "TOPIC_RESPONSES" not found; SQL statement: delete from topic_responses where topic_id=? [42102-214] 2022-06-29 15:57:54.866 WARN 44705 --- [nio-8080-exec-9] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement; SQL [delete from topic_responses where topic_id=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement]