Fixed build error in Entities (id wasn't @NonNull)

This commit is contained in:
ChronosX88 2019-03-20 14:55:35 +04:00
parent 34fe3715ac
commit 4dd6eca565
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
package io.github.chronosx88.influence.models.roomEntities;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "chats")
public class ChatEntity {
@PrimaryKey String id;
@NonNull @PrimaryKey String id;
@ColumnInfo String name;
@ColumnInfo String keyPairID;

View File

@ -7,7 +7,7 @@ import androidx.room.PrimaryKey;
@Entity(tableName = "messages")
public class MessageEntity {
@PrimaryKey String id;
@NonNull @PrimaryKey String id;
@ColumnInfo String chatID;
@ColumnInfo String sender;
@ColumnInfo String text;