Skip to content

Instantly share code, notes, and snippets.

@iammert
Created July 11, 2017 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammert/7620bb61c37bc491a06de3b2356f5ecd to your computer and use it in GitHub Desktop.
Save iammert/7620bb61c37bc491a06de3b2356f5ecd to your computer and use it in GitHub Desktop.
GenresDao.java
@Dao
public abstract class GenresDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
public abstract void insert(List<GenreEntity> genreEntities);
@Query("SELECT * FROM genreentity")
public abstract Flowable<List<GenreEntity>> getAll();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment