8.1 Room Data Access Object (Short Note) PDF
8.1 Room Data Access Object (Short Note) PDF
To insert data we use @Insert annotation. You can choose any name as
the method name. But the parameter of the method definition should
be an Instance of the corresponding entity class(Entity class which
represents the database table). The parameter can be an array or a
collection of objects too.
Not like inserting, updating or deleting we need to write some SQL for
querying data.