mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-22 07:12:19 +00:00
Fixed build error in Entities (id wasn't @NonNull)
This commit is contained in:
parent
34fe3715ac
commit
4dd6eca565
@ -1,12 +1,13 @@
|
|||||||
package io.github.chronosx88.influence.models.roomEntities;
|
package io.github.chronosx88.influence.models.roomEntities;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
@Entity(tableName = "chats")
|
@Entity(tableName = "chats")
|
||||||
public class ChatEntity {
|
public class ChatEntity {
|
||||||
@PrimaryKey String id;
|
@NonNull @PrimaryKey String id;
|
||||||
@ColumnInfo String name;
|
@ColumnInfo String name;
|
||||||
@ColumnInfo String keyPairID;
|
@ColumnInfo String keyPairID;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import androidx.room.PrimaryKey;
|
|||||||
|
|
||||||
@Entity(tableName = "messages")
|
@Entity(tableName = "messages")
|
||||||
public class MessageEntity {
|
public class MessageEntity {
|
||||||
@PrimaryKey String id;
|
@NonNull @PrimaryKey String id;
|
||||||
@ColumnInfo String chatID;
|
@ColumnInfo String chatID;
|
||||||
@ColumnInfo String sender;
|
@ColumnInfo String sender;
|
||||||
@ColumnInfo String text;
|
@ColumnInfo String text;
|
||||||
|
Loading…
Reference in New Issue
Block a user