Move to Java 8 entirely.
This app demonstrates how to mix Spring Data JPA and Spring Data MongoDB together (with Spring Data REST on top) to demonstrate how to split them up properly.