Android Room inserts duplicate entities
问题 I'm using Android's Room library for the database interaction in an application and I'm sort of stumped on how to prevent duplicate entries from being inserted into the database. I feel like I must be missing something because this seems like it should be simple to do. I've searched Google for various combinations of words relating to the subject to no avail. I'm essentially using what one of the samples does for inserting and querying. The Entity: @Entity(tableName = "cameras") public class