mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
Entity微修正
This commit is contained in:
parent
f98614c5f2
commit
6845e552ef
|
@ -3,10 +3,15 @@ package one.nem.lacerta.source.database.entity;
|
||||||
import androidx.room.ColumnInfo;
|
import androidx.room.ColumnInfo;
|
||||||
import androidx.room.Entity;
|
import androidx.room.Entity;
|
||||||
import androidx.room.PrimaryKey;
|
import androidx.room.PrimaryKey;
|
||||||
|
import androidx.room.TypeConverters;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
||||||
|
|
||||||
@Entity(tableName = "vcs_rev")
|
@Entity(tableName = "vcs_rev")
|
||||||
|
@TypeConverters({DateTypeConverter.class})
|
||||||
public class VcsRevEntity {
|
public class VcsRevEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,8 +42,8 @@ public class VcsRevEntity {
|
||||||
/**
|
/**
|
||||||
* コミット日時
|
* コミット日時
|
||||||
*/
|
*/
|
||||||
@ColumnInfo(name = "commit_date")
|
@ColumnInfo(name = "created_at")
|
||||||
public String commitDate;
|
public Date createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 含まれるLogのID
|
* 含まれるLogのID
|
||||||
|
|
Loading…
Reference in New Issue
Block a user