Examples of Person


Examples of org.kurron.foundation.spring.example.model.Person

    }

    @Override
    public Iterable<Person> getPerson() throws EchoPortError
    {
        final Person person = new Person();
        person.setFirstName( "Devan" );
        person.setLastName( "Kurr" );
        theRepository.save( person );
        return theRepository.findAll();
    }
View Full Code Here

Examples of org.mapstruct.ap.test.complex.source.Person

        //given
        Car car = new Car(
            "Morris",
            2,
            new GregorianCalendar( 1980, 0, 1 ).getTime(),
            new Person( "Bob" ),
            new ArrayList<Person>()
        );

        //when
        CarDto carDto = CarMapper.INSTANCE.carToCarDto( car );
View Full Code Here

Examples of org.mau.model.Person

public class FillData {
  /**
   * A method to fill arbitrary data into the database
   */
  public static void Fill() {
    List<Person> list = Arrays.asList(new Person("A", 20), new Person("B", 30), new Person("C", 40));
    EntityManager em = ManageHuman.get();
    em.getTransaction().begin();
    for (Person p : list) {
      em.persist(p);
    }
View Full Code Here

Examples of org.metrapp.domain.files.Person

        try {

            br = new BufferedReader(new FileReader(csvFile));

            String[] entry = new String[6];
            Person p;
            while ((line = br.readLine()) != null) {
                entry = line.split(cvsSplitBy);
                p = new Person(entry[0], entry[1], entry[2]);
                addPerson(p);
//                p = new Person(entry[0], entry[1], entry[2], entry[3], entry[4], entry[5]);
//                addPerson(p);
            }
View Full Code Here

Examples of org.milyn.javabean.binding.config5.Person

    public void test_Person_binding() throws IOException, SAXException {
        XMLBinding xmlBinding = new XMLBinding().add(getClass().getResourceAsStream("config5/person-binding-config.xml"));
        xmlBinding.intiailize();

        Person person = xmlBinding.fromXML("<person name='Max' age='50' />", Person.class);
        String xml = xmlBinding.toXML(person);
        XMLUnit.setIgnoreWhitespace(true);
        XMLAssert.assertXMLEqual("<person name='Max' age='50' />", xml);

    }
View Full Code Here

Examples of org.milyn.javabean.performance.model.Person

     */
    public TemplateModel get(int nmb) throws TemplateModelException {
     
      Customer c = new Customer();
     
      c.person = new Person();
      c.person.surname = "surname-" + nmb;
      c.person.firstname = "firstname-" + nmb;
      c.person.gender = (nmb % 2 == 0)? "m" : "f";
      c.person.phonenumber = "1000" + nmb;
     
View Full Code Here

Examples of org.mule.jaxb.model.Person

    }

    @Override
    public Object getResultData()
    {
        Person p = new Person();
        p.setName("John Doe");
        p.setDob("01/01/1970");

        EmailAddress ea = new EmailAddress("john.doe@gmail.com", "home");
        EmailAddress ea2 = new EmailAddress("jdoe@bigco.com", "work");
        p.setEmailAddresses(Arrays.asList(ea, ea2));

        return p;
    }
View Full Code Here

Examples of org.mule.json.model.Person

    public void testCustomTransform() throws Exception
    {
        MuleMessage message = new DefaultMuleMessage(PERSON_JSON, muleContext);

        Person person = (Person) message.getPayload(DataTypeFactory.create(Person.class));
        assertNotNull(person);
        assertEquals("John Doe", person.getName());
        assertEquals("01/01/1970", person.getDob());
        assertEquals(2, person.getEmailAddresses().size());
        assertEquals("home", person.getEmailAddresses().get(0).getType());
        assertEquals("john.doe@gmail.com", person.getEmailAddresses().get(0).getAddress());
        assertEquals("work", person.getEmailAddresses().get(1).getType());
        assertEquals("jdoe@bigco.com", person.getEmailAddresses().get(1).getAddress());
    }
View Full Code Here

Examples of org.mule.tck.testmodels.services.Person

    }

    public void testRequestWithComplexArg() throws Exception
    {
        MuleClient client = new MuleClient(muleContext);
        Person person = new Person("Joe", "Blow");
        String uri = getMuleAddress(client, "inMyComponent3") + "/mycomponent3?method=addPerson";
        client.send(uri, person, null);
        uri = getMuleAddress(client, "inMyComponent3") "/mycomponent3?method=getPerson";
        MuleMessage result = client.send(uri, "Joe", null);
        assertNotNull(result);
View Full Code Here

Examples of org.mycompany.audit.model.Person

    if (annotation != null)
    {
      AuditMessage audit = new AuditMessage();
      String actionCode = annotation.actionCode();
      String auditMessage = annotation.auditMessage();
      Person principal = null;// determinePrincipal(annotation);
      auditMessage = (exception == null ? ""
          : "The following exception occurred: " + exception.toString());

      audit.setId(UUID.randomUUID().toString());
      audit.setActionCode(actionCode);
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.