Use Java configuration and spring-data.