Prevent reread

This commit is contained in:
M66B 2020-01-30 16:32:39 +01:00
parent e7c5029d47
commit 586033fa7f
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Transaction;
import java.util.List;
@ -39,6 +40,7 @@ public interface DaoOperation {
" ELSE 0" +
" END";
@Transaction
@Query("SELECT operation.*" +
", " + priority + " AS priority" +
", account.name AS accountName, folder.name AS folderName" +