use of org.neo4j.ogm.domain.education.DomainObject in project neo4j-ogm by neo4j.
the class LoadCapabilityTest method loadAllByInstancesShouldLoadAllClasses.
@Test
public void loadAllByInstancesShouldLoadAllClasses() {
SessionFactory sf = new SessionFactory(getDriver(), "org.neo4j.ogm.domain.education");
Session sessionWithEducationDomain = sf.openSession();
School school = new School();
Student student = new Student();
sessionWithEducationDomain.save(school);
sessionWithEducationDomain.save(student);
Collection<DomainObject> loaded = sessionWithEducationDomain.loadAll(Arrays.asList(school, student));
assertThat(loaded).contains(school, student);
}
Aggregations