I would like to extend the DefaultRevisionEntity and at the beginning of my transaction create an instance of MyRevisionEntity and set certain values in it - how can i get access to the instance of MyRevisionEntity that will be used during the transaction? Alternativly how can i instantiate an ExampleListener that will be used? Or does the extra data have to be available with a static function call as shown in the example in the documentation?
right now you can only access it in the listener, using static methods to fill in the data. However there is a feature request to create a method in AuditReader which would get the revision entity: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3823