mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
TagListのConverterを実装した
This commit is contained in:
parent
957ad6aacb
commit
f28e506060
|
@ -9,13 +9,14 @@ 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 one.nem.lacerta.source.database.common.TagArrayListConverter;
|
||||||
|
import one.nem.lacerta.source.database.common.TagListConverter;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Entity(tableName = "document")
|
@Entity(tableName = "document")
|
||||||
@TypeConverters({DateTypeConverter.class, TagArrayListConverter.class})
|
@TypeConverters({DateTypeConverter.class, TagListConverter.class})
|
||||||
public class DocumentEntity {
|
public class DocumentEntity {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user