Package pl.altkom.bookstore.web.model

Examples of pl.altkom.bookstore.web.model.Person


   
      @RequestMapping(value = "/client", produces = "application/json; charser=utf-8")
    public @ResponseBody Client getClient() {
    
     
     Person p = new Person();
    
    
    
     p.setAddress(null);
     p.setContact(null);
     p.setDateOfBirth(Date.from(Instant.now()));
     p.setFirstName("Jan");
     p.setLastName("Kowalski");
     p.setPeselNumber("11111111111");
    
    
       Client c = new IndividualClient(p);
     
    
View Full Code Here


    @Test
    public void testClientSave() {
       
        CorporateClient client = new CorporateClient();
       
        Person p = new Person();
        p.setLastName("Kowalski");
        p.setFirstName("Jan");
               
        client.addPerson(p);
       
        client.setName("nazwa klienta");
       
View Full Code Here

TOP

Related Classes of pl.altkom.bookstore.web.model.Person

Copyright © 2018 www.massapicom. 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.