As a result of https://github.com/spring-projects/spring-data-mongodb/issues/3592, Spring Data MongoDB has stopped looking for @Persistent when scanning for entities. We should align our behaviour.

A similar change was made in Spring Data Cassandra (https://github.com/spring-projects/spring-data-cassandra/issues/1100) but we've already picked up that change through our use of org.springframework.data.cassandra.config.CassandraEntityClassScanner.