RoomWarnings

public class RoomWarnings
extends Object

java.lang.Object
   ↳ androidx.room.RoomWarnings


The list of warnings that are produced by Room.

You can use these values inside a SuppressWarnings annotation to disable the warnings.

Summary

Constants

String CANNOT_CREATE_VERIFICATION_DATABASE

Reported when Room cannot verify database queries during compilation.

String CURSOR_MISMATCH

The warning dispatched by Room when the return value of a Query method does not exactly match the fields in the query result.

String DEFAULT_CONSTRUCTOR

Reported when a POJO has multiple constructors, one of which is a no-arg constructor.

String DOES_NOT_IMPLEMENT_EQUALS_HASHCODE

The warning dispatched by Room when the object in the provided method's multimap return type does not implement equals() and hashCode().

String INDEX_FROM_EMBEDDED_ENTITY_IS_DROPPED

Reported when an Entity that has a Embeddedd field whose type is another Entity and that Entity has some indices defined.

String INDEX_FROM_EMBEDDED_FIELD_IS_DROPPED

Reported when an Entity field that is annotated with Embedded has a sub field which has a ColumnInfo annotation with index = true.

String INDEX_FROM_PARENT_FIELD_IS_DROPPED

Reported when an Entity inherits a field from its super class and the field has a ColumnInfo annotation with index = true.

String INDEX_FROM_PARENT_IS_DROPPED

Reported when an Entity's parent declares an Index.

String MISMATCHED_GETTER

Reported when an `@Entity` field's type do not exactly match the getter type.

String MISMATCHED_SETTER

Reported when an `@Entity` field's type do not exactly match the setter type.

String MISSING_INDEX_ON_FOREIGN_KEY_CHILD

When there is a foreign key from Entity A to Entity B, it is a good idea to index the reference columns in B, otherwise, each modification on Entity A will trigger a full table scan on Entity B.

String MISSING_INDEX_ON_JUNCTION

Reported when a junction entity whose column is used in a `@Relation` field with a `@Junction` does not contain an index.

String MISSING_JAVA_TMP_DIR

Reported when Room cannot verify database queries during compilation due to lack of tmp dir access in JVM.

String MISSING_SCHEMA_LOCATION

Reported when a `room.schemaLocation` argument is not provided into the annotation processor.

String PRIMARY_KEY_FROM_EMBEDDED_IS_DROPPED

Reported when