РП
Size: a a a
РП
НП
РП
РТ
РП
EA
РП
R
И
L
A
L
error: Entities and POJOs must have a usable public constructor. You can have an empty constructor or a constructor whose
parameters match the fields (by name and type).
public final class Word implements android.os.Parcelable {
^
Tried the following constructors but they failed to match:
/*bla bla bla*/
error: Cannot find setter for field.
private final java.lang.String foreign = null;
error: Cannot find setter for field.
private final int category = 0;
\error: Cannot find setter for field.
private final boolean shown = false;
error: Cannot find setter for field.
private final int id = 0;
L
@Entity(tableName = "word_table")
@Parcelize
data class Word(
val native: String,
val foreign: String,
val category: Int,
val shown: Boolean = true,
@PrimaryKey(autoGenerate = true) val id: Int = 0
) : Parcelable {
}
L
R
L
MV
L
sy