I don't think that this is correct since I could use it without explicitly defining the ``entity-manager-factory-ref``. I didn't see your pull request before, that's why I created another pull request (https://github.com/spring-projects/spring-data-envers/pull/15) which is very close to your changes. Sorry for that. :/