Package controllers

Source Code of controllers.Application

package controllers;


import models.Tick;
import play.db.ebean.Model;
import play.mvc.Controller;
import play.mvc.Result;

import java.util.List;

public class Application extends Controller {

    public static Result index() {
        Tick tick = new Tick("Hello from the Application Controller");
        tick.save();
        List<Tick> ticks = new Model.Finder(Long.class, Tick.class).all();
        return ok(views.html.index.render(ticks));
    }

}
TOP

Related Classes of controllers.Application

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.