@Test @Transactional public void entityMapperShouldForwardEntityPath() throws Exception { Person michael = new Person("Michael", 36).persist(); EntityMapper<Person, Person, String> mapper = new EntityMapper<Person, Person, String>(ctx) { @Override public String mapPath(EntityPath<Person, Person> entityPath) { return entityPath.<Person>startEntity().getName(); } }; String name = mapper.mapPath(new NodePath(michael.getPersistentState())); Assert.assertEquals(michael.getName(), name); }
public abstract T mapPath(EntityPath<S,E> entityPath);
EntityMapper implements PathMapper<T> { public abstract T mapPath(EntityPath<S,E> entityPath); }
EntityMapper implements PathMapper<T> { public abstract T mapPath(EntityPath<S,E> entityPath); protected  EntityMapper(GraphDatabaseContext graphDatabaseContext); }
EntityMapper implements PathMapper<T> { public abstract T mapPath(EntityPath<S,E> entityPath); protected  EntityMapper(GraphDatabaseContext graphDatabaseContext); abstract T mapPath(EntityPath<S,E> entityPath); @Override T mapPath(Path path); }
EntityMapper implements PathMapper<T> { public abstract T mapPath(EntityPath<S,E> entityPath); protected  EntityMapper(GraphDatabaseContext graphDatabaseContext); abstract T mapPath(EntityPath<S,E> entityPath); @Override T mapPath(Path path);  }