mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
ArrayListやめた
This commit is contained in:
parent
ca82fe5e55
commit
8a1314446d
|
@ -4,15 +4,18 @@ import androidx.annotation.NonNull;
|
||||||
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.TypeConverter;
|
||||||
import androidx.room.TypeConverters;
|
import androidx.room.TypeConverters;
|
||||||
|
|
||||||
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
||||||
|
import one.nem.lacerta.source.database.common.TagArrayListConverter;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Entity(tableName = "document")
|
@Entity(tableName = "document")
|
||||||
@TypeConverters(DateTypeConverter.class)
|
@TypeConverters({DateTypeConverter.class, TagArrayListConverter.class})
|
||||||
public class DocumentEntity {
|
public class DocumentEntity {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
@ -35,5 +38,5 @@ public class DocumentEntity {
|
||||||
public String defaultBranch; // デフォルトブランチ
|
public String defaultBranch; // デフォルトブランチ
|
||||||
|
|
||||||
@ColumnInfo(name = "tag_ids")
|
@ColumnInfo(name = "tag_ids")
|
||||||
public ArrayList<String> tagIds; // タグ
|
public List<String> tagIds; // タグ
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user