Hibernate Envers: can't create custom revision entity

Viewed 249

I'm trying to create a custom revision entity and I do exactly what written in the official documentation: https://docs.jboss.org/hibernate/orm/4.3/devguide/en-US/html/ch15.html#envers-revisionlog

In separate simple project it works but in my main project I got always the following exception:

Caused by: java.lang.NoClassDefFoundError: org/hibernate/resource/beans/spi/ManagedBeanRegistry at org.hibernate.envers.internal.revisioninfo.DefaultRevisionInfoGenerator.resolveRevisionListenerBean(DefaultRevisionInfoGenerator.java:108)

1 Answers

Adding the following dependencies solve the problem:

compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.0.Final'
Related