Package models

Examples of models.Tick.save()


        Application application = new DefaultApplication(new File(args[0]), TickJob.class.getClassLoader(), null, Mode.Prod());

        Play.start(application);

        Tick tick = new Tick("Hello from the TickJob");
        tick.save();
       
        Play.stop();
    }

}
View Full Code Here


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));
    }

}
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.