<Room @Ignore annotation not working with KSP> We ...
# stackoverflow
r
Room @Ignore annotation not working with KSP We are trying to ignore a field in constructor of data class @Entity(tableName = "SampleEntityTable") data class SampleEntity( @PrimaryKey(autoGenerate = true) val id: Int = 0, @Ignore var sampleJavaClass: SampleJavaClass, var epoch: Long = 0 ) SampleJavaClass is a class written in Java, the build fails with 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...