我有以下模型:
class Recording private() extends MongoRecord[Recording] with ObjectIdPk[Recording] {
def meta = Recording
object time extends IntField(this)
object fulltime extends IntField(this)
}
当我执行以下操作时:
var time = System.currentTimeMillis() / 1000
var fulltime = System.currentTimeMillis()
Recording.createRecord.
time(time.toInt).
fulltime(fulltime.toInt).
save
“时间”字段正确存储为“1334919100”,但“全职”字段保存为“-815728745”,这是怎么回事?我需要做些什么来接受完整毫秒长度的时间戳吗?
非常感谢任何帮助,在此先感谢:)