Package org.springframework.data.neo4j.aspects

Examples of org.springframework.data.neo4j.aspects.Toyota


  @Transactional
  public void testCountSubclasses() {
    log.warn("testCountSubclasses");
        persist(new Volvo());
    log.warn("Created volvo");
        persist(new Toyota());
    log.warn("Created volvo");
        assertEquals("Wrong count for Volvo.", 1L, neo4jTemplate.repositoryFor(Volvo.class).count());
        assertEquals("Wrong count for Toyota.", 1L, neo4jTemplate.repositoryFor(Toyota.class).count());
        assertEquals("Wrong count for Car.", 2L, neo4jTemplate.repositoryFor(Car.class).count());
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.aspects.Toyota

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.