Package models

Examples of models.Person.save()


        return ok(index.render());
    }

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

    public Result getPersons() {
      List<Person> persons = new Model.Finder(String.class, Person.class).all();
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.