That was the first method to add to the brand new cineasts repository. First step was to create an (still empty) repository interface for Movie (and Actor). We added the repository configuration to our application context. Then we created a repository for the application, annotated it with @Repository and @Transactional and injected the movie repository. We did the same for the Actor.
public interface MovieRepository extends NodeGraphRepository<Movie> { // findById(String id) - automatic derived finder for a future SDG release } <datagraph:repositories base-package="org.neo4j.cineasts.repository"/> @Repository @Transactional public class CineastsRepostory { @Autowired MovieRepository movieRepository; public Movie getMovie(int id) { return movieRepository.findByPropertyValue(null,"id", id); } }