Examples of manageTime()


Examples of org.javalite.activejdbc.test_models.Person.manageTime()

    public void shouldTurnTimeManagementOffWhenCreating() {

        Person p = new Person();
        p.set("name", "Marilyn", "last_name", "Monroe", "graduation_date", "1975-12-06");

        p.manageTime(false);

        long createdAt = new GregorianCalendar(2014, 8, 22).getTimeInMillis();
        long updatedAt = new GregorianCalendar(2014, 8, 23).getTimeInMillis();

        p.set("created_at", new Timestamp(createdAt));
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Person.manageTime()

        long createdAt = new GregorianCalendar(2014, 8, 22).getTimeInMillis();
        long updatedAt = new GregorianCalendar(2014, 8, 23).getTimeInMillis();


        p.manageTime(false);

        p.set("name", "igor");
        p.set("created_at", new Timestamp(createdAt));
        p.set("updated_at", new Timestamp(updatedAt));
        p.saveIt();
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.