1

I have added envers to my Spring Boot project with @Audited, extended my JpaRepository with RevisionRepository<Entity, Id, RevisionId>, have a @EnableJpaRepositories(repositoryFactoryBeanClass = EnversRevisionRepositoryFactoryBean.class).

I am currently using MySql for my database.

However I've come into this error

'db.revinfo' doesn't exist

also with the automatically generated tables for envers.

What am I missing in my configuration or code to fix this problem?

PredictableBeaco
  • 97
  • 1
  • 1
  • 8

1 Answers1

0

You need to add to application properties jpa.hibernate.ddl-auto = update so hibernate automatically generates tables for you.

Toni
  • 1,555
  • 4
  • 15
  • 23
Rastislav S
  • 61
  • 1
  • 3