mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
WIP DateTypeConverter実装
This commit is contained in:
parent
8663b86fc6
commit
4296ed6209
|
@ -4,10 +4,14 @@ 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.TypeConverters;
|
||||||
|
|
||||||
|
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Entity(tableName = "document")
|
@Entity(tableName = "document")
|
||||||
|
@TypeConverters(DateTypeConverter.class)
|
||||||
public class Document {
|
public class Document {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user