Package er.neo4jadaptor.test.eo

Examples of er.neo4jadaptor.test.eo.SecondEntity.firstEntities()


    results = fetchAll(FirstEntity.ENTITY_NAME);
    assertEquals(1, results.count());
    assertEquals(row2, results.get(0).secondEntity());
   
    assertEquals(1, row2.firstEntities().count());
   
    results2 = fetchAll(SecondEntity.ENTITY_NAME);
    assertEquals(1, results.count());
    assertEquals(1, results2.get(0).firstEntities().count());
    assertEquals(row1, results2.get(0).firstEntities().get(0));
View Full Code Here


    ec.invalidateAllObjects();

    assertEquals(0, row2a.firstEntities().count());
   
    // start n=node:types("type:FirstEntity"), n_secondEntityId=node(4) match n-[?]->x, n-[:secondEntityId]->n_secondEntityId where 1=1 return n.id
    assertEquals(1, row2b.firstEntities().count());
   
    results = fetchAll(FirstEntity.ENTITY_NAME);
    assertEquals(1, results.count());
    assertEquals(row2b, results.get(0).secondEntity());
  }
View Full Code Here

    ec.deleteObject(row1);
    ec.saveChanges();
   
    ec.invalidateAllObjects();

    assertEquals(0, row2.firstEntities().size());
   
    results = fetchAll(FirstEntity.ENTITY_NAME);
    assertEquals(0, results.count());
  }
View Full Code Here

   
    ec.saveChanges();
    ec.forgetObject(second);
    second = (SecondEntity) fetchAll(SecondEntity.ENTITY_NAME).get(0);
   
    assertFalse(second.firstEntities().isEmpty())// programme.events().isEmpty()
  }
 

  public void test28_deletingJoinRelationship() {
    FirstEntity first = ERXEOControlUtilities.createAndInsertObject(ec, FirstEntity.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.