Use spring-data-jpa in org.jmangos.realm package.