You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:error: ========== :Foreign Keys must be nullable. Please remove the non-null annotation if using Java, or add ? to the type for Kotlin.==========
Is it really such a problem to have non-nullable foreign key?
UPD: As I took a point, after reading some of the same issues had been asked here before, I should put @nonnull annotation instead of non-nullable Kotlin type to see right behavior of this.
3. Default constructor for data class*
Error:error: *==========class com.raizlabs.android.dbflow.processor.TableValidator :Table XXXX must provide a visible, default constructor.==========
DBFlow Version: 4.1.1
Issue Kind (Bug, Question, Feature): Bug, Question
Description:
I'm using Kotlin to create database
I've got 3 issues (don't know if I should separate them).
1. Standart column types.
I use ByteArray type in a table. I got:
But 3rd item allows it:
https://agrosner.gitbooks.io/dbflow/content/TypeConverters.html
2. Non-nullable Foreign Key
Is it really such a problem to have non-nullable foreign key?
UPD: As I took a point, after reading some of the same issues had been asked here before, I should put @nonnull annotation instead of non-nullable Kotlin type to see right behavior of this.
3. Default constructor for data class*
I have data classes for all tables in database with column as parameters. Looks like one's in example
https://agrosner.gitbooks.io/dbflow/content/KotlinSupport.html
Got errors for all of tables.
The text was updated successfully, but these errors were encountered: