+1 for throwing an exception. Such code indicates incorrect Hibernate/Envers usage.
Also +1 for extracting the actual check to a method so that the code isn't repeated
+1 for throwing an exception. Such code indicates incorrect Hibernate/Envers usage.
Also +1 for extracting the actual check to a method so that the code isn't repeated![](https://hibernate.onjira.com/images/icons/emoticons/wink.gif)