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
When creating tables.. the tableName needs to match the class name or it will throw a runtime error when you try to insert into the database. The database does get created fine from what i saw, but inserts fail
Works:
@Entity(tableName = "ChannelEntity")
data class ChannelEntity(var name: String = ""
Doesnt work
@Entity(tableName = "channel")
data class ChannelEntity(var name: String = ""
I dont have the exact exception.. but it was in an InvalidationTracker and it was complaining about a table not being found (it listed the name of the class instead of the name i gave the table)
Support for tableName = "something other than class name" would be appreciated as that is supported in Room
The text was updated successfully, but these errors were encountered:
When creating tables.. the tableName needs to match the class name or it will throw a runtime error when you try to insert into the database. The database does get created fine from what i saw, but inserts fail
Works:
Doesnt work
I dont have the exact exception.. but it was in an InvalidationTracker and it was complaining about a table not being found (it listed the name of the class instead of the name i gave the table)
Support for tableName = "something other than class name" would be appreciated as that is supported in Room
The text was updated successfully, but these errors were encountered: