Examples of Person


Examples of com.inspiresoftware.lib.dto.geda.examples.addressbook.domain.Person

    /**
     * Running example of services that use GeDA behind the scenes to transfer data
     * between DTO and Entities.
     */
    public void runSetupData() {
        final Person irene = personDAO.addPerson("Irene", "Adler");

        final Person mycroft = personDAO.addPerson("Mycroft", "Holmes");

        final Person sherlock = personDAO.addPerson("Sherlock", "Holmes");

        personDAO.addAddress(sherlock, "221B Baker str", "London", "NW1 6XE", "GB");

        final Person john = personDAO.addPerson("John H.", "Watson");

        personDAO.addAddress(john, "221B Baker str", "London", "NW1 6XE", "GB");
    }
View Full Code Here

Examples of com.luxoft.dnepr.courses.regular.unit6.familytree.Person

    private static final String ROOT_ATTRIBUTE = "root";

    public static String getJSONString(FamilyTree familyTree) {
        StringBuilder jsonBuilder = new StringBuilder();
        jsonBuilder.append(OPEN_BRACKET);
        Person root = familyTree.getRoot();
        if (root != null) {
            jsonBuilder.append(QUOTE_SYMBOL + ROOT_ATTRIBUTE + QUOTE_SYMBOL);
            jsonBuilder.append(KEYVALUE_DELIMITER);
            jsonBuilder.append(JSONPerson.getJSONString(root));
        }
View Full Code Here

Examples of com.melitronic.domain.entity.Person

              task.getId();
            }
          }
          if (item instanceof Issue) {
            for (Action action : ((Issue)item).getAction()) {
              Person person = action.getPerson();
              if (person != null) {
                person.getId();
              }
            }
          }
        }
      }
View Full Code Here

Examples of com.melitronic.rmapp.model.Person

        person.setUserId(value);
       
        return person;
      }
      else {
        Person person = new Person();
        person.setFirstName(firstName);
        person.setLastName(lastName);
        person.setId(id);
        person.setUserId(value);
       
        return person;
      }
    }
View Full Code Here

Examples of com.motomapia.entity.Person

  @Produces(MediaType.APPLICATION_JSON)
  public Person loginPersona(@FormParam("assertion") String assertion) throws IOException {

    String email = verify(assertion);

    Person who = login(email);

    doorman.login(who);

    return who;
  }
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.jpab.objects.Person

   *
   * @return the new constructed entity object.
   */
    @Override
    protected TestEntity newEntity() {
        return new Person(this);
    }
View Full Code Here

Examples of com.omertron.themoviedbapi.model.Person

    public List<Person> getAll() {
        List<Person> people = new ArrayList<Person>();

        // Add a cast member
        for (PersonCast member : cast) {
            Person person = new Person();
            person.addCast(member.getId(), member.getName(), member.getProfilePath(), member.getCharacter(), member.getOrder());
            people.add(person);
        }

        // Add a crew member
        for (PersonCrew member : crew) {
            Person person = new Person();
            person.addCrew(member.getId(), member.getName(), member.getProfilePath(), member.getDepartment(), member.getJob());
            people.add(person);
        }

        return people;
    }
View Full Code Here

Examples of com.opensymphony.xwork2.test.annotations.Person

    }


    public void testConvert() {
        Map context = new HashMap();
        Person o = new Person();
        Member member = null;
        String s = "names";
        Object value = new Person[0];
        Class toType = String.class;
        basicConverter.convertValue(context, value, member, s, value, toType);
View Full Code Here

Examples of com.phanindra.domain.Person

import com.google.common.collect.ImmutableList;
import com.phanindra.domain.Person;

public class Lambda {
  public static void main(String args[]) {
    List<Person> people = ImmutableList.of(new Person().setName("Phanindra"), new Person().setName("Padmashree"));
    Stream<Person> filteredPeopleStrem = people.stream().filter(p -> p.getName().startsWith("P"));
    System.out.println(filteredPeopleStrem.count());
  }
View Full Code Here

Examples of com.pt.domain.Person

      if (isEmpty(encodedIcon)) {
        model.addAttribute("errorMessage", "Name, your thoughts and a picture are required.");
            return show("write");
      }
     
      Person owner = new Person();
      owner.setName(name);
      dataService.createPerson(owner);
     
      Thought thought = new Thought();
      thought.setCreatedOn(Calendar.getInstance().getTime());
      thought.setThought(new Text(userThought));
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.