Add an auto update time field to the Cursor entity

Also adjusts the nomulus list_cursors command to output the value of this field.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=206646117
This commit is contained in:
mcilwain 2018-07-30 14:21:14 -07:00 committed by jianglai
parent 3941249dfe
commit f614044681
6 changed files with 62 additions and 14 deletions

View file

@ -32,6 +32,7 @@ import org.junit.Test;
/** Unit tests for {@link Cursor}. */
public class CursorTest extends EntityTestCase {
@Test
public void testSuccess_persistScopedCursor() {
createTld("tld");

View file

@ -73,6 +73,7 @@ class google.registry.model.billing.BillingEvent$Recurring {
class google.registry.model.common.Cursor {
@Id java.lang.String id;
@Parent com.googlecode.objectify.Key<google.registry.model.common.EntityGroupRoot> parent;
google.registry.model.UpdateAutoTimestamp lastUpdateTime;
org.joda.time.DateTime cursorTime;
}
class google.registry.model.common.EntityGroupRoot {