/*
 * Copyright (C) 2014 Eduardo Barrenechea
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package ca.barrenechea.ticker.data;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.Ignore;
import io.realm.annotations.Index;

public class Event extends RealmObject {
    @Ignore
    public static final String COLUMN_NAME = "name";
    @Ignore
    public static final String COLUMN_START = "started";

    @Index
    private String id;
    @Index
    private String name;
    private long created;
    private long started = -1;
    private String note;
    private RealmList<HistoryEntry> listHistory;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public long getStarted() {
        return started;
    }

    public void setStarted(long started) {
        this.started = started;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public RealmList<HistoryEntry> getListHistory() {
        return listHistory;
    }

    public void setListHistory(RealmList<HistoryEntry> listHistory) {
        this.listHistory = listHistory;
    }
}
@@ -761,16 +761,68 @@
 .Index;%0A
+import io.realm.annotations.RealmClass;%0A%0A@RealmClass
 %0Apublic 
@@ -1432,32 +1432,94 @@
  = name;%0A    %7D%0A%0A
+    public long getCreated() %7B%0A        return created;%0A    %7D%0A%0A
     public void 

Fix bug where created getter was missing.