Examples of Person


Examples of org.superbiz.domain.Person

    @PersistenceContext
    private EntityManager em;

    public Person save(final String name) {
        final Person person = new Person();
        person.setName(name);
        em.persist(person);
        return person;
    }
View Full Code Here

Examples of org.superbiz.model.Person

    @Transactional(TransactionMode.ROLLBACK)
    public void persist() {
        assertNotNull(em);

        // do something with the em
        final Person p = new Person();
        p.setName("Apache OpenEJB");
        em.persist(p);
    }
View Full Code Here

Examples of org.switchyard.serial.jackson.JacksonSerializationData.Person

        doRun(SerializerFactory.create(format, CompressionType.GZIP, true), 8, true);
    }

    private void doRun(Serializer serializer, int spaces, boolean newline) throws Exception {
        //serializer.setPrettyPrint(true);
        Car car = new Car(new Person("Dave"));
        long start = System.currentTimeMillis();
        byte[] bytes = serializer.serialize(car, Car.class);
        //System.out.println(new String(bytes));
        car = serializer.deserialize(bytes, Car.class);
        long stop = System.currentTimeMillis();
View Full Code Here

Examples of org.switchyard.serial.protostuff.ProtostuffSerializationData.Person

    }

    @Test
    public void testSpecificArray() throws Exception {
        Car car = new Car();
        car.setPassengers(new Person[] {new Person("passengerA"), new Person("passengerB")});
        car = serDeser(car, Car.class);
        Assert.assertEquals(2, car.getPassengers().length);
        Assert.assertEquals("passengerB", car.getPassengers()[1].getNickName());
    }
View Full Code Here

Examples of org.tempuri.Person

    }

    public void testPersonElement() {
        PersonElement personElement = new PersonElement();
        Person person = new Person();
        personElement.setPersonElement(person);
        person.setName("amila");
        person.setAge(23);
        person.setHairColor(HairColor_type1.black);
        Date date = new Date();
        person.setBirthDate(date);
        Address address = new Address();
        person.setAddress(address);
        address.setCity("Galle");
        address.setLine1("line1");
        address.setLine2("line2");
        address.setState("state");
        Zip_type1 ziptype = new Zip_type1();
View Full Code Here

Examples of org.test.Person

        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
        List<?> list = new ArrayList<Object>();
        ksession.setGlobal( "list",
                            list );

        ksession.insert( new Person( "name",
                                     34 ) );
       
        ksession.fireAllRules();
        ksession.dispose();

        assertEquals( 1,
                      list.size() );
        assertEquals( new Person( "name",
                                  34 ),
                      list.get( 0 ) );

    }
View Full Code Here

Examples of org.vaadin.addon.customfield.demo.data.Person

        table.setNullSelectionAllowed(true);
        table.addContainerProperty("Name", String.class, null);
        table.addListener(getTableValueChangeListener());
        Address address = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Address address2 = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Person person = new Person("Teppo", "Testaaja", new Date(100000000l),
                address);
        Person person2 = new Person("Taina", "Testaaja", new Date(200000000l),
                address2);
        Item item = table.addItem(person);
        item.getItemProperty("Name").setValue(
                person.getFirstName() + " " + person.getLastName());
        item = table.addItem(person2);
        item.getItemProperty("Name").setValue(
                person2.getFirstName() + " " + person2.getLastName());
        return table;
    }
View Full Code Here

Examples of org.wicketTutorial.jsr303.Person

  private static final long serialVersionUID = 1L;

  public HomePage(final PageParameters parameters) {
    super(parameters);

    setDefaultModel(new CompoundPropertyModel<Person>(new Person()));
   
    Form<Void> form = new Form<Void>("form");
   
    form.add(new TextField("name").add(new PropertyValidator()));
    form.add(new TextField("email").add(new PropertyValidator()));
View Full Code Here

Examples of org.wicketstuff.egrid.model.Person

  }

  private List<Person> getPersons()
  {
    List<Person> persons = new ArrayList<Person>();
    persons.add(new Person("Person1","12", "Address1"));
    persons.add(new Person("Person2","13", "Address2"));
    persons.add(new Person("Person3","13", "Address3"));
    persons.add(new Person("Person4","13", "Address4"));
    persons.add(new Person("Person5","13", "Address5"));
    persons.add(new Person("Person6","13", "Address6"));
    return persons;
  }
View Full Code Here

Examples of org.wicketstuff.rest.Person

  }

  @MethodMapping(value = "/", httpMethod = HttpMethod.POST)
  public Person testMethodPost()
  {
    Person person = createTestPerson();
    return person;
  }
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.