mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-25 16:32: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;
|
||||
|
||||
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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user