mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
アノテーション修正
This commit is contained in:
parent
b2a619629f
commit
c711ad304b
|
@ -1,5 +1,6 @@
|
||||||
package one.nem.lacerta.source.database.entity;
|
package one.nem.lacerta.source.database.entity;
|
||||||
|
|
||||||
|
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;
|
||||||
|
@ -18,6 +19,7 @@ public class VcsLogEntity {
|
||||||
*/
|
*/
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
@NonNull
|
||||||
public String id;
|
public String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
package one.nem.lacerta.source.database.entity;
|
package one.nem.lacerta.source.database.entity;
|
||||||
|
|
||||||
|
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 androidx.room.TypeConverters;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import one.nem.lacerta.source.database.common.ArrayListConverter;
|
||||||
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
import one.nem.lacerta.source.database.common.DateTypeConverter;
|
||||||
|
|
||||||
@Entity(tableName = "vcs_rev")
|
@Entity(tableName = "vcs_rev")
|
||||||
@TypeConverters({DateTypeConverter.class})
|
@TypeConverters({DateTypeConverter.class, ArrayListConverter.class})
|
||||||
public class VcsRevEntity {
|
public class VcsRevEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,6 +23,7 @@ public class VcsRevEntity {
|
||||||
*/
|
*/
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
@NonNull
|
||||||
public String id;
|
public String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -49,5 +54,5 @@ public class VcsRevEntity {
|
||||||
* 含まれるLogのID
|
* 含まれるLogのID
|
||||||
*/
|
*/
|
||||||
@ColumnInfo(name = "log_ids")
|
@ColumnInfo(name = "log_ids")
|
||||||
public List<String> logIds;
|
public ArrayList<String> logIds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user