This seems to be the only existing use of @Column(type=...) which is a loathsome piece of functionality that I'd like to rip out of Depot. I am not sure why we fixed on TIMESTAMP originally; only in MySQL would it make a difference at all, and I believe only Whirled uses this class?
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@883 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -27,7 +27,6 @@ import com.samskivert.util.StringUtil;
|
|||||||
|
|
||||||
import com.samskivert.depot.Key;
|
import com.samskivert.depot.Key;
|
||||||
import com.samskivert.depot.PersistentRecord;
|
import com.samskivert.depot.PersistentRecord;
|
||||||
import com.samskivert.depot.annotation.Column;
|
|
||||||
import com.samskivert.depot.annotation.Entity;
|
import com.samskivert.depot.annotation.Entity;
|
||||||
import com.samskivert.depot.annotation.Id;
|
import com.samskivert.depot.annotation.Id;
|
||||||
import com.samskivert.depot.annotation.Index;
|
import com.samskivert.depot.annotation.Index;
|
||||||
@@ -45,7 +44,7 @@ public class RatingRecord extends PersistentRecord
|
|||||||
public static final ColumnExp LAST_UPDATED = colexp(_R, "lastUpdated");
|
public static final ColumnExp LAST_UPDATED = colexp(_R, "lastUpdated");
|
||||||
// AUTO-GENERATED: FIELDS END
|
// AUTO-GENERATED: FIELDS END
|
||||||
|
|
||||||
public static final int SCHEMA_VERSION = 3;
|
public static final int SCHEMA_VERSION = 4;
|
||||||
|
|
||||||
/** The identifier of the game we're rating for. */
|
/** The identifier of the game we're rating for. */
|
||||||
@Id public int gameId;
|
@Id public int gameId;
|
||||||
@@ -60,7 +59,6 @@ public class RatingRecord extends PersistentRecord
|
|||||||
public int experience;
|
public int experience;
|
||||||
|
|
||||||
/** The last time this rating was updated. */
|
/** The last time this rating was updated. */
|
||||||
@Column(type="TIMESTAMP", defaultValue="CURRENT_TIMESTAMP")
|
|
||||||
public Timestamp lastUpdated;
|
public Timestamp lastUpdated;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user