Package models

Examples of models.Person


    private String email;

    @Override
    public Person build() {
        Person person = new Person("Ben", "Verbeken");
        person.email = email;
        return person;
    }
View Full Code Here


    renderArgs.put(argName, "the current time is: " + new Date());
  }
 
  public static void people(){   
    renderArgs.put("people", newArrayList(
        new Person("Alex"),
        new Person("Ben"),
        new Person("Caroline")
    ));
  }
View Full Code Here

    public Result index() {
        return ok(index.render());
    }

    public Result addPerson() {
      Person person = Form.form(Person.class).bindFromRequest().get();
      person.save();
      return redirect(routes.Application.index());
    }
View Full Code Here

TOP

Related Classes of models.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.