Code example for Timestamp

0
        Timestamp createdOrig = p.getTimestamp("created_at");
        Timestamp updatedOrig = p.getTimestamp("updated_at");
 
        Thread.sleep(500);
 
        Base.exec("update people set updated_at = ? where id = ?", new Timestamp(System.currentTimeMillis()), p.getId());
        Base.exec("update people set created_at = ? where id = ?", new Timestamp(System.currentTimeMillis()), p.getId());
 
        p.refresh();
 
        a(createdOrig).shouldNotBeEqual(p.getTimestamp("created_at"));
        a(updatedOrig).shouldNotBeEqual(p.getTimestamp("updated_at"));
    } 
}