From 6845e552eff6c0777bf5c6510f4ce78bafdb6754 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 13:22:28 +0900 Subject: [PATCH] =?UTF-8?q?Entity=E5=BE=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/source/database/entity/VcsRevEntity.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java index e4379f9c..8105f37b 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java +++ b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java @@ -3,10 +3,15 @@ package one.nem.lacerta.source.database.entity; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; +import androidx.room.TypeConverters; +import java.util.Date; import java.util.List; +import one.nem.lacerta.source.database.common.DateTypeConverter; + @Entity(tableName = "vcs_rev") +@TypeConverters({DateTypeConverter.class}) public class VcsRevEntity { /** @@ -37,8 +42,8 @@ public class VcsRevEntity { /** * コミット日時 */ - @ColumnInfo(name = "commit_date") - public String commitDate; + @ColumnInfo(name = "created_at") + public Date createdAt; /** * 含まれるLogのID