Bokris Itzhak
Bokris Itzhak

Reputation: 961

Hibernate Envers: can't create custom revision entity

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)

Upvotes: 3

Views: 460

Answers (1)

Bokris Itzhak
Bokris Itzhak

Reputation: 961

Adding the following dependencies solve the problem:

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

Upvotes: 1

Related Questions