Examples of Family


Examples of org.folg.gedcom.model.Family

    assertNull(gedxSourceDescription.getExtensionElements());
  }

  @Test
  public void testToSourcesAndSourceReferences2() throws Exception {
    Family dqFamily = gedcom.getFamilies().get(1);
    TestConversionResult result = new TestConversionResult();
    GedcomMapper gedcomMapper = new GedcomMapper();

    FamilyMapper mapper = new FamilyMapper();
View Full Code Here

Examples of org.gedcom4j.model.Family

        Gedcom g = gp.gedcom;
        assertNotNull(g);
        assertEquals(1, g.families.size());
        assertEquals(2, g.individuals.size());

        Family family = g.families.get("@F001@");
        assertNotNull(family);
        assertNotNull(family.husband);
        assertEquals("@I001@", family.husband.xref);
        assertEquals("Husband /Gedcom/", family.husband.names.get(0).basic);
View Full Code Here

Examples of org.gedcom4j.model.Family

     * @return true if and only if the ancestor has been found for person
     */
    private boolean lookForAncestor(Individual person, Individual ancestor) {
        if (person != null && person.familiesWhereChild != null) {
            for (FamilyChild fc : person.familiesWhereChild) {
                Family f = fc.family;
                if (ancestor.equals(f.husband) || ancestor.equals(f.wife)) {
                    genCount = 1;
                    return true;
                } else if (lookForAncestor(f.husband, ancestor)) {
                    genCount++;
View Full Code Here

Examples of org.hibernate.test.cache.infinispan.stress.entities.Family

                     public Boolean call() throws Exception {
                        Session s = sessionFactory.openSession();
                        s.getTransaction().begin();

                        String name = "Zamarreño-" + run;
                        Family family = new Family(name);
                        s.persist(family);

                        s.getTransaction().commit();
                        s.close();
                        return true;
View Full Code Here

Examples of org.hibernate.test.cache.infinispan.stress.entities.Family

                        Session s = sessionFactory.openSession();
                        s.getTransaction().begin();

                        // Update random entity that has been inserted
                        int id = RANDOM.nextInt(numEntities) + 1;
                        Family family = (Family) s.load(Family.class, id);
                        String newSecondName = "Arrizabalaga-" + run;
                        family.setSecondName(newSecondName);

                        s.getTransaction().commit();
                        s.close();
                        // Cache updated entities for later read
                        updatedIds.add(id);
View Full Code Here

Examples of org.hibernate.test.cache.infinispan.stress.entities.Family

               public Boolean call() throws Exception {
                  Session s = sessionFactory.openSession();

                  int id = updatedIdsSeq.get(RANDOM.nextInt(
                        updatedIdsSeq.size()));
                  Family family = (Family) s.load(Family.class, id);
                  String secondName = family.getSecondName();
                  assertNotNull(secondName);
                  assertTrue("Second name not expected: " + secondName,
                        secondName.startsWith("Arrizabalaga"));

                  s.close();
View Full Code Here

Examples of org.hibernate.test.cache.infinispan.stress.entities.Family

               @Override
               public Boolean call() throws Exception {
                  Session s = sessionFactory.openSession();

                  int id = RANDOM.nextInt(numEntities) + 1;
                  Family family = (Family) s.load(Family.class, id);
                  String familyName = family.getName();
                  // Skip ñ check in order to avoid issues...
                  assertTrue("Unexpected family: " + familyName ,
                        familyName.startsWith("Zamarre"));

                  s.close();
View Full Code Here

Examples of org.hibernate.test.cache.infinispan.stress.entities.Family

                        Session s = sessionFactory.openSession();
                        s.getTransaction().begin();

                        // Get each id and remove it
                        int id = removeIds.poll();
                        Family family = (Family) s.load(Family.class, id);
                        String familyName = family.getName();
                        // Skip ñ check in order to avoid issues...
                        assertTrue("Unexpected family: " + familyName ,
                              familyName.startsWith("Zamarre"));
                        s.delete(family);
View Full Code Here

Examples of org.jugile.proto2.domain.Family

    p1.setName("Jukka");
    p1.setAge(10);
    p1.setTs(new Time("11.11.2011"));
    pid1 = p1.id();
   
    Family f1 = d.createFamily().setName("f1");
    f1.setType(FamilyType.BIG);
    fid1 = f1.id();
    Family f2 = d.createFamily().setName("f2");
    fid2 = f2.id();

    Person p2 = d.createPerson().setName("p2");
    pid2 = p2.id();

    p1.setFamily(f1);
View Full Code Here

Examples of org.jugile.proto2.domain.Family

    Person p1 = d.getPerson(pid1);
    assertEquals("Jukka",p1.getName());
    assertEquals(10,p1.getAge());
    assertEquals(new Time("11.11.2011"),p1.getTs());

    Family f1 = p1.getFamily();
    assertNotNull(f1);
    assertEquals("f1", f1.getName());
    assertEquals(FamilyType.BIG, f1.getType());

    assertEquals(2, p1.getFriendFamilies().size());
    Person p2 = d.getPerson(pid2);
    assertEquals(1, p2.getFriendFamilies().size());
    assertEquals(2, f1.getFriendPersons().size());
    assertEquals(1, p1.getChildren().size());

  }
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.